Skip to content

Commit

Permalink
newInternalFailureError: update helper comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Dec 9, 2024
1 parent 5ebe459 commit 953b2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rule/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func isDirectiveComment(line string) bool {
func isCallToExitFunction(pkgName, functionName string) bool {
return exitFunctions[pkgName] != nil && exitFunctions[pkgName][functionName]
}
// newInternalFailureError returns single internal failure

// newInternalFailureError returns an slice of Failure with a single internal failure in it
func newInternalFailureError(e error) []lint.Failure {
return []lint.Failure{lint.NewInternalFailure(e.Error())}
}

0 comments on commit 953b2a5

Please sign in to comment.