Fix unhandled error in Pebble

This commit is contained in:
Juan Calderon-Perez
2023-06-17 13:32:16 -04:00
committed by GitHub
parent ad190e72fe
commit 6f49a10c0c

View File

@@ -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
}