mirror of
https://github.com/gofiber/storage.git
synced 2025-09-27 12:52:25 +08:00
Fix unhandled error in Pebble
This commit is contained in:

committed by
GitHub

parent
ad190e72fe
commit
6f49a10c0c
@@ -69,8 +69,8 @@ func (s *Storage) Get(key string) ([]byte, error) {
|
||||
secs := time.Now().Unix()
|
||||
|
||||
if cache.Expires > 0 && cache.Expires <= secs {
|
||||
s.db.Delete([]byte(key), nil)
|
||||
return nil, nil
|
||||
err = s.db.Delete([]byte(key), nil)
|
||||
return nil, err
|
||||
}
|
||||
return cache.Data, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user