Skip to content

Commit

Permalink
update golangci-lint, goreleaser, remove shorthand flag, add comment …
Browse files Browse the repository at this point in the history
…about local file and file:// (#96)
  • Loading branch information
Richard87 authored Jun 4, 2024
1 parent 103a074 commit e73944f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/validateRadixConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ var validateRadixConfigCmd = &cobra.Command{
validationErrors = append(validationErrors, err)
}

if len(validationErrors) > 0 {
for _, err := range validationErrors {
fmt.Fprintf(os.Stderr, " - %s\n", err)
}

fmt.Fprintln(os.Stderr, "RadixConfig is invalid")
os.Exit(2)
if len(validationErrors) == 0 {
fmt.Fprintln(os.Stderr, "RadixConfig is valid")
return
}

fmt.Fprintln(os.Stderr, "RadixConfig is valid")
fmt.Fprintln(os.Stderr, "RadixConfig is invalid")
for _, err := range validationErrors {
fmt.Fprintf(os.Stderr, " - %s\n", err)
}
os.Exit(2)
},
}

Expand Down

0 comments on commit e73944f

Please sign in to comment.