Skip to content

Commit

Permalink
suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ci42 committed Jan 30, 2023
1 parent 7d8cdda commit 667979e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hash/hash_comparator.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ func compareSHAHelper(hasher string, raw []byte, hash []byte) error {

switch hasher {
case "sha1":
sum := sha1.Sum(raw) // nosec G401
sum := sha1.Sum(raw) // #nosec G401
sha = sum[:]
case "sha256":
sum := sha256.Sum256(raw)
Expand Down

0 comments on commit 667979e

Please sign in to comment.