mirror of
https://github.com/gofiber/storage.git
synced 2025-11-03 10:50:58 +08:00
Update sqlite3.go
This commit is contained in:
@@ -108,11 +108,11 @@ func (s *Storage) Get(key string) ([]byte, error) {
|
||||
if err.Error() != noRows {
|
||||
return nil, err
|
||||
}
|
||||
return nil, nil
|
||||
return nil, err.Error()
|
||||
}
|
||||
|
||||
// If the expiration time has already passed, then return nil
|
||||
if exp <= time.Now().Unix() && exp != 0 {
|
||||
if exp != 0 && exp <= time.Now().Unix() {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user