Fix various golangci-lint errors (#2059)

This commit is contained in:
Anton Bretting
2022-02-12 20:28:08 +09:00
committed by GitHub
parent 9a2df3c0a2
commit 2f04831817
29 changed files with 362 additions and 263 deletions
+6 -1
View File
@@ -271,5 +271,10 @@ func (p *pair) add(node resource, source diffSource) error {
}
func main() {
rootCmd.Execute()
err := rootCmd.Execute()
if err != nil {
fmt.Println(fmt.Errorf("unexpected error: %v", err))
os.Exit(1)
}
}