Skip to content

Commit

Permalink
Use nil instead of empty struct
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongable committed Jul 17, 2024
1 parent 632fac9 commit 69aeca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ceremony/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var kp goodkey.KeyPolicy

func init() {
var err error
kp, err = goodkey.NewPolicy(&goodkey.Config{}, nil)
kp, err = goodkey.NewPolicy(nil, nil)
if err != nil {
log.Fatal("Could not create goodkey.KeyPolicy")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/cert-checker/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func init() {
if err != nil {
log.Fatal(err)
}
kp, err = sagoodkey.NewPolicy(&goodkey.Config{}, nil)
kp, err = sagoodkey.NewPolicy(nil, nil)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 69aeca6

Please sign in to comment.