Skip to content

Commit a0df911

Browse files
committed
Make linter happy
1 parent ec5f0c8 commit a0df911

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

access_key.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (V0) Version() byte { return 0 }
7878
func (V0) Encode(_ context.Context, projectID uint64) string {
7979
buf := make([]byte, sizeV0)
8080
binary.BigEndian.PutUint64(buf, projectID)
81-
rand.Read(buf[8:])
81+
_, _ = rand.Read(buf[8:])
8282
return base62.EncodeToString(buf)
8383
}
8484

@@ -103,7 +103,7 @@ func (v V1) Encode(_ context.Context, projectID uint64) string {
103103
buf := make([]byte, sizeV1)
104104
buf[0] = v.Version()
105105
binary.BigEndian.PutUint64(buf[1:], projectID)
106-
rand.Read(buf[9:])
106+
_, _ = rand.Read(buf[9:])
107107
return base64.Base64UrlEncode(buf)
108108
}
109109

@@ -133,7 +133,7 @@ func (v V2) Encode(ctx context.Context, projectID uint64) string {
133133
buf := make([]byte, sizeV2)
134134
buf[0] = v.Version()
135135
binary.BigEndian.PutUint64(buf[1:], projectID)
136-
rand.Read(buf[9:])
136+
_, _ = rand.Read(buf[9:])
137137
return getPrefix(ctx) + Separator + base64.Base64UrlEncode(buf)
138138
}
139139

0 commit comments

Comments
 (0)