mirror of
https://github.com/distribution/distribution.git
synced 2025-09-01 06:57:45 +00:00
feat(linter): enable errcheck linter in golangci-lint
Also, bump the linter version to the latest available version. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
@@ -18,5 +18,9 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
// NOTE(milosgajdos): if the only two commands registered
|
||||
// with registry.RootCmd fail they will halt the program
|
||||
// execution and exit the program with non-zero exit code.
|
||||
// nolint:errcheck
|
||||
registry.RootCmd.Execute()
|
||||
}
|
||||
|
Reference in New Issue
Block a user