Skip to content

Commit 0791775

Browse files
make linter happy
1 parent 0b3de39 commit 0791775

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/pkg/cache/cache.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ func Init() error {
5858
cacheEncryptionKey = make([]byte, 32)
5959
_, err := rand.Read(cacheEncryptionKey)
6060
if err != nil {
61-
return fmt.Errorf("cache encryption key: %v", err)
61+
return fmt.Errorf("cache encryption key: %w", err)
6262
}
6363
key := base64.StdEncoding.EncodeToString(cacheEncryptionKey)
6464
err = auth.SetAuthField(auth.CACHE_ENCRYPTION_KEY, key)
6565
if err != nil {
66-
return fmt.Errorf("save cache encryption key: %v", err)
66+
return fmt.Errorf("save cache encryption key: %w", err)
6767
}
6868
err = auth.SetAuthField(auth.CACHE_ENCRYPTION_KEY_AGE, fmt.Sprint(time.Now().Unix()))
6969
if err != nil {
70-
return fmt.Errorf("save cache encryption key age: %v", err)
70+
return fmt.Errorf("save cache encryption key age: %w", err)
7171
}
7272
}
7373
return nil

0 commit comments

Comments
 (0)