Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
number571 committed Oct 30, 2024
1 parent 12dfdb7 commit 427f41c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func main() {
}
pkFile := e.Name()
if err := pubKeyIsValid(pkFile); err != nil {
log.Fatalf("'%s' is invalid:\n%s", pkFile, err.Error())
log.Fatalf("'%s' is invalid: %s", pkFile, err.Error())
}
}
}
Expand All @@ -83,8 +83,8 @@ func pubKeyIsValid(pkFile string) error {

for i, hashsum := range hashFuncs {
wantHash := mp[pkFile][i]
if h := hashsum(pubKeyStr); h != mp[pkFile][i] {
return fmt.Errorf("want:\t'%s'\ngot:\t'%s'", wantHash, h)
if h := hashsum(pubKeyStr); h != wantHash {
return fmt.Errorf("want:'%s'; got:'%s'", wantHash, h)
}
}

Expand Down

0 comments on commit 427f41c

Please sign in to comment.