From 55ccc6dc6153e0b527867de175f3cd1a9258ca4f Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Tue, 18 Jun 2024 13:38:15 +0000 Subject: [PATCH] cleanup Signed-off-by: Austin Abro --- src/pkg/packager/lint/validator.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pkg/packager/lint/validator.go b/src/pkg/packager/lint/validator.go index 840316b9c3..49c309a44d 100644 --- a/src/pkg/packager/lint/validator.go +++ b/src/pkg/packager/lint/validator.go @@ -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 { @@ -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