fix: correct stickler issues

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-22 16:56:35 -05:00
parent 6fd4b5adb1
commit d3ef846b59
4 changed files with 8 additions and 4 deletions

View File

@@ -395,7 +395,7 @@ func ReportSingleApp(reportType string, appName string, infoFlag string, infoFla
strkeys[i] = keys[i].String()
}
return errors.New(fmt.Sprintf("Invalid flag passed, valid flags: %s", strings.Join(strkeys, ", ")))
return fmt.Errorf("Invalid flag passed, valid flags: %s", strings.Join(strkeys, ", "))
}
// RightPad right-pads the string with pad up to len runes