Skip to content

Commit 6c8c291

Browse files
committed
Fix go fmt issue
1 parent 0d65b33 commit 6c8c291

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

client.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,27 +230,27 @@ func (c *HTTPClient) CacheGetKeyWithContext(ctx context.Context, keyID string) (
230230
if c.KeyFolder == "" {
231231
return nil, fmt.Errorf("no folder set for cached key")
232232
}
233-
233+
234234
// Check context before file operations
235235
select {
236236
case <-ctx.Done():
237237
return nil, ctx.Err()
238238
default:
239239
}
240-
240+
241241
keyPath := path.Join(c.KeyFolder, keyID)
242242
b, err := os.ReadFile(keyPath)
243243
if err != nil {
244244
return nil, err
245245
}
246-
246+
247247
// Check context after file read but before JSON unmarshal
248248
select {
249249
case <-ctx.Done():
250250
return nil, ctx.Err()
251251
default:
252252
}
253-
253+
254254
k := Key{Path: keyPath}
255255
err = json.Unmarshal(b, &k)
256256
if err != nil {
@@ -603,7 +603,7 @@ func (c *UncachedHTTPClient) getHTTPDataWithContext(ctx context.Context, method
603603
// If we get a 500, we need to retry the request.
604604
return fmt.Errorf(resp.Message)
605605
}
606-
606+
607607
// Check context before sleeping
608608
backoffDuration := GetBackoffDuration(i)
609609
timer := time.NewTimer(backoffDuration)

0 commit comments

Comments
 (0)