Skip to content

Commit

Permalink
Please the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Petrausch committed Oct 29, 2020
1 parent 126e134 commit 25f213a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ all: build
GO111MODULE=on


lint:
golangci-lint run

test:
go test ./...
go vet ./...
Expand Down
2 changes: 1 addition & 1 deletion cmd/mqtt2prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
os.Exit(0)
}
logger := mustSetupLogger()
defer logger.Sync()
defer logger.Sync() //nolint:errcheck
c := make(chan os.Signal, 1)
hostName, err := os.Hostname()
if err != nil {
Expand Down

0 comments on commit 25f213a

Please sign in to comment.