Skip to content

Commit 4adf6c6

Browse files
committed
added nolint for sha1
1 parent 5c7fa80 commit 4adf6c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/rest/proxy/image.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package proxy
33
import (
44
"bytes"
55
"context"
6-
"crypto/sha1"
6+
"crypto/sha1" // nolint
77
"encoding/base64"
88
"fmt"
99
"io"
@@ -205,7 +205,7 @@ func (p Image) downloadImage(ctx context.Context, imgURL string) (io.ReadCloser,
205205
}
206206

207207
func sha1Str(s string) string {
208-
return fmt.Sprintf("%x", sha1.Sum([]byte(s)))
208+
return fmt.Sprintf("%x", sha1.Sum([]byte(s))) // nolint
209209
}
210210

211211
// generates ID for a cached image.

0 commit comments

Comments
 (0)