Skip to content

Commit dbef31e

Browse files
author
Brendan Ryan
committed
add comments
1 parent 598083a commit dbef31e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ var RootCmd = &cobra.Command{
8383
os.Exit(1)
8484
}
8585
}
86-
8786
} else {
8887
if len(args) < 1 && len(directories) < 1 {
8988
log.Error("You must pass at least one file as an argument, or at least one directory to the directories flag")
@@ -143,6 +142,8 @@ var RootCmd = &cobra.Command{
143142
},
144143
}
145144

145+
// hasErrors returns truthy if any of the provided results
146+
// contain errors.
146147
func hasErrors(res []kubeval.ValidationResult) bool {
147148
for _, r := range res {
148149
if len(r.Errors) > 0 {

0 commit comments

Comments
 (0)