Skip to content

Commit

Permalink
Fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Feb 25, 2025
1 parent 65b8b75 commit aa280f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/api/cache/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ func (m *CacheMiddleware) cacheResult(ctx context.Context, key string, r *Respon
return errors.Wrap(err, "unable to read recorded response")
}

m.cache.Set(ctx, key, data, m.expirationFunc)
return nil
return m.cache.Set(ctx, key, data, m.expirationFunc)
}

func (m *CacheMiddleware) isStatusCacheable(e *CacheEntry) bool {
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/cache/valkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (c *ValKey) Set(ctx context.Context, key string, data string, expirationFun

return c.client.Do(
ctx,
c.client.B().Set().Key(key).Value(string(data)).ExSeconds(expiredAt).Build(),
c.client.B().Set().Key(key).Value(data).ExSeconds(expiredAt).Build(),
).Error()
}

Expand Down

0 comments on commit aa280f8

Please sign in to comment.