Skip to content

Commit

Permalink
Fix lint and nit
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
  • Loading branch information
haydentherapper committed Jan 11, 2023
1 parent 191e0a7 commit e0f4414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cosign/cli/fulcio/fulcio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func TestNewSigner(t *testing.T) {
testServer := httptest.NewServer(http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusCreated)
_, _ = w.Write([]byte(pemChain))
_, _ = w.Write(pemChain)
}))
defer testServer.Close()

Expand Down
4 changes: 3 additions & 1 deletion cmd/cosign/cli/sign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@ func SignerFromKeyOpts(ctx context.Context, certPath string, certChainPath strin
}

// Default Keyless!
fmt.Fprintln(os.Stderr, "Generating ephemeral keys...")
if !ko.IssueCertificate {
fmt.Fprintln(os.Stderr, "Generating ephemeral keys...")
}
return keylessSigner(ctx, ko)
}

Expand Down

0 comments on commit e0f4414

Please sign in to comment.