mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
chore: cleanup code in rules (#1197)
This commit is contained in:
@@ -123,7 +123,7 @@ func isCallToExitFunction(pkgName, functionName string) bool {
|
||||
return exitFunctions[pkgName] != nil && exitFunctions[pkgName][functionName]
|
||||
}
|
||||
|
||||
// newInternalFailureError returns an slice of Failure with a single internal failure in it
|
||||
// newInternalFailureError returns a slice of Failure with a single internal failure in it
|
||||
func newInternalFailureError(e error) []lint.Failure {
|
||||
return []lint.Failure{lint.NewInternalFailure(e.Error())}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user