Skip to content

Commit

Permalink
Return nil if there are no validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Sep 26, 2023
1 parent 698eabc commit 53619ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@ func validateSourceCommandAction(cmd *cobra.Command, args []string) error {
return fmt.Errorf("locating package root failed: %w", err)
}
err = validation.ValidateAndFilterFromPath(packageRootPath)
return fmt.Errorf("linting package failed: %w", err)
if err != nil {
return fmt.Errorf("linting package failed: %w", err)
}
return nil
}

0 comments on commit 53619ac

Please sign in to comment.