Please the linter

This commit is contained in:
Christoph Petrausch
2020-10-29 21:10:48 +01:00
parent 126e13428b
commit 25f213a37e
2 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,9 @@ all: build
GO111MODULE=on
lint:
golangci-lint run
test:
go test ./...
go vet ./...

View File

@@ -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 {