Skip to content

Commit

Permalink
stellar#4433: removed static check warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland committed Jul 9, 2022
1 parent b4a87a0 commit ac5f4af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion exp/lighthorizon/actions/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func accountRequestParams(w http.ResponseWriter, r *http.Request) (string, pagin
var accountId string
var accountErr bool

if accountId, accountErr = getURLParam(r, urlAccountId); accountErr != true {
if accountId, accountErr = getURLParam(r, urlAccountId); !accountErr {
sendErrorResponse(w, http.StatusBadRequest, "")
return "", pagination{}
}
Expand Down
3 changes: 0 additions & 3 deletions exp/lighthorizon/actions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"strconv"

"github.com/go-chi/chi"
"github.com/gorilla/schema"
"github.com/stellar/go/support/log"
"github.com/stellar/go/support/render/hal"
)
Expand Down Expand Up @@ -95,8 +94,6 @@ func paging(r *http.Request) (pagination, error) {
return paginate, nil
}

var decoder = schema.NewDecoder()

func getURLParam(r *http.Request, key string) (string, bool) {
rctx := chi.RouteContext(r.Context())

Expand Down

0 comments on commit ac5f4af

Please sign in to comment.