Skip to content

Commit

Permalink
fix: nolint directive for exhaustive changed
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <nscuro@protonmail.com>
  • Loading branch information
nscuro committed Jul 27, 2022
1 parent bcc0b5c commit 80f2983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sbom/sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func CalculateFileHashes(logger zerolog.Logger, filePath string, algos ...cdx.Ha
for _, algo := range algos {
var hashWriter hash.Hash

switch algo { //exhaustive:ignore
switch algo { //nolint:exhaustive
case cdx.HashAlgoMD5:
hashWriter = md5.New() // #nosec G401
case cdx.HashAlgoSHA1:
Expand Down

0 comments on commit 80f2983

Please sign in to comment.