mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
♻️ improve test
This commit is contained in:
@@ -106,10 +106,10 @@ func (s *Storage) Get(key string) ([]byte, error) {
|
||||
result := MongoStorage{}
|
||||
|
||||
if err := res.Err(); err != nil {
|
||||
return []byte{}, err
|
||||
return nil, err
|
||||
}
|
||||
if err := res.Decode(&result); err != nil {
|
||||
return []byte{}, err
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return result.Value, nil
|
||||
|
Reference in New Issue
Block a user