list-*: Fixup linting

Signed-off-by: Morten Linderud <morten@linderud.pw>
This commit is contained in:
Morten Linderud 2021-09-05 15:33:06 +02:00
parent 9ff60964d5
commit 73be015150
No known key found for this signature in database
GPG Key ID: E742683BA08CB2FF
2 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,8 @@ var listBundlesCmd = &cobra.Command{
func(s *sbctl.Bundle) error {
ok, err := sbctl.VerifyFile(sbctl.DBCert, s.Output)
if err != nil {
logging.Error(fmt.Errorf("%s: %w\n", s.Output, err))
logging.Error(fmt.Errorf("%s: %w", s.Output, err))
logging.Error(fmt.Errorf(""))
return nil
}
logging.Println("Enrolled bundles:\n")

View File

@ -26,7 +26,8 @@ func RunList(_ *cobra.Command, args []string) error {
func(s *sbctl.SigningEntry) error {
ok, err := sbctl.VerifyFile(sbctl.DBCert, s.OutputFile)
if err != nil {
logging.Error(fmt.Errorf("%s: %w\n", s.OutputFile, err))
logging.Error(fmt.Errorf("%s: %w", s.OutputFile, err))
logging.Error(fmt.Errorf(""))
return nil
}
logging.Println(s.File)