Skip to content

Commit

Permalink
comment move
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Funkhouser <[email protected]>
  • Loading branch information
golanglemonade committed Oct 15, 2024
1 parent 7b3647b commit 5a0bf60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/objects/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package objects

import (
"bytes"
"crypto/md5" //nolint:gosec #nosec G501 // MD5 is used for checksums, not for hashing passwords
// #nosec: G501
"crypto/md5" //nolint:gosec // MD5 is used for checksums, not for hashing passwords
"encoding/base64"
"fmt"
"io"
Expand Down Expand Up @@ -100,7 +101,8 @@ func ReaderToSeeker(r io.Reader) (io.ReadSeeker, error) {
// the passed io object will be seeked to its beginning and will seek back to the
// beginning after reading its content.
func ComputeChecksum(data io.ReadSeeker) (string, error) {
hash := md5.New() //nolint:gosec #nosec G501 // MD5 is used for checksums, not for hashing passwords
// #nosec: G501
hash := md5.New() //nolint:gosec // MD5 is used for checksums, not for hashing passwords
if _, err := io.Copy(hash, data); err != nil {
return "", fmt.Errorf("could not read file: %w", err)
}
Expand Down

0 comments on commit 5a0bf60

Please sign in to comment.