Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Leung <[email protected]>
  • Loading branch information
k4leung4 committed Sep 23, 2024
1 parent d5b41b8 commit 43a737a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func certChainToCertificateAuthority(certChainPem []byte) (*root.CertificateAuth
}

func concatCertChain(leaf []byte, intermediate [][]byte, root []byte) []byte {
result := []byte{}
result := []byte{}
if len(leaf) > 0 {
// for Fulcio, the leaf will always be empty, don't necessarily append an empty newline
result = append(result, leaf...)
Expand Down
2 changes: 1 addition & 1 deletion pkg/repo/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func TestCompressUncompressFS(t *testing.T) {
if err = CompressFS(fsys, &buf, map[string]bool{"keys": true, "staged": true}); err != nil {
t.Fatalf("Failed to compress: %v", err)
}
// #nosec G306 -- test
// #nosec G306 -- test
if err := os.WriteFile(filepath.Join(t.TempDir(), "newcompressed"), buf.Bytes(), os.ModePerm); err != nil {
t.Fatalf("Failed to write compressed output")
}
Expand Down

0 comments on commit 43a737a

Please sign in to comment.