Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Jul 23, 2024
1 parent 21ff9ca commit 55ccc6d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pkg/packager/lint/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func colorWrapSev(s types.Severity) string {
} else if s == types.SevWarn {
return message.ColorWrap("Warning", color.FgYellow)
}
return ""
return "unknown"
}

func packageRelPathToUser(baseDir string, relPath string) string {
Expand All @@ -46,9 +46,6 @@ func PrintFindings(findings []types.PackageError, severity types.Severity, baseD
findings = helpers.RemoveMatches(findings, func(finding types.PackageError) bool {
return finding.Category > severity
})
if baseDir == "" {
baseDir = "."
}
for i := range findings {
if findings[i].PackageNameOverride == "" {
findings[i].PackageNameOverride = packageName
Expand Down

0 comments on commit 55ccc6d

Please sign in to comment.