Skip to content

Commit

Permalink
fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
julioc98 committed Sep 25, 2023
1 parent 65dfddf commit 62e79df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,13 @@ linters:
fast: false
enable:
# List of enabled-by-default linters that we explicitly opt-in.
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck

# List of disabled-by-default linters that we explicitly opt-in.
- asciicheck
Expand Down Expand Up @@ -80,7 +77,6 @@ linters:
- gomodguard
- goprintffuncname
# - gosec
- ifshort
- importas
- lll
- makezero
Expand Down Expand Up @@ -112,6 +108,10 @@ linters:
# - interfacer
# - maligned Replaced by govet 'fieldalignment'
# - scopelint Replaced by exportloopref
# - ifshort
# - structcheck Replaced by unused.
# - deadcode Replaced by unused.
# - varcheck Replaced by unused.

issues:
# Independently from option `exclude` we use default exclude patterns,
Expand Down
1 change: 0 additions & 1 deletion internal/infra/api/delivery_rest_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ func (h *DeliveryRestHandler) FindNearby(w http.ResponseWriter, r *http.Request)
}

radius, err := strconv.Atoi(radiusParam)

if err != nil {
http.Error(w, "Invalid radius", http.StatusBadRequest)

Expand Down

0 comments on commit 62e79df

Please sign in to comment.