Skip to content

Commit

Permalink
refactor: make the linter pass (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio authored Jun 21, 2022
1 parent 7cbda11 commit b85cc6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ output:
# Default: colored-line-number
format: github-actions

linters-settings:
wrapcheck:
ignoreSigs:
# Fiber takes care of unwrapping the error
- func (*github.com/gofiber/fiber/v2.Ctx)

linters:
enable-all: true

Expand All @@ -49,6 +55,9 @@ linters:
- maligned
- scopelint

# Not terribly useful and ends up in too much boilerplate
- exhaustruct

# Run only fast linters from enabled linters set (first run won't be fast)
# Default: false
# fast: true
3 changes: 1 addition & 2 deletions internal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ func main() {
return c.SendString("Hello, World!")
})

err := app.Listen(":3000")
if err != nil {
if err := app.Listen(":3000"); err != nil {
return
}
}

0 comments on commit b85cc6e

Please sign in to comment.