Merge pull request #32025 from gjenkins8/gjenkins/fix_lint

fix: unnecessary-format lint issues from merge
pull/31997/merge
Terry Howe 3 days ago committed by GitHub
commit fa194a0609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -98,7 +98,7 @@ func InstallWithOptions(i Installer, opts Options) (*VerificationResult, error)
// Check if provenance data exists
if len(provData) == 0 {
return nil, fmt.Errorf("plugin verification failed: no provenance file (.prov) found")
return nil, errors.New("plugin verification failed: no provenance file (.prov) found")
}
// Provenance data exists - verify the plugin

@ -58,7 +58,7 @@ func TestInstallWithOptions_VerifyMissingProvenance(t *testing.T) {
// Plugin should NOT be installed
if _, err := os.Stat(installer.Path()); !os.IsNotExist(err) {
t.Errorf("Plugin should not be installed when verification fails due to missing .prov")
t.Error("Plugin should not be installed when verification fails due to missing .prov")
}
}

Loading…
Cancel
Save