Codestyle: Fix govet issues (#17178)
ref #10381 Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
This commit is contained in:
committed by
Carl Bergquist
parent
574a37e46f
commit
87760d4fde
@@ -43,16 +43,10 @@ func (s *redisStorage) Get(key string) (interface{}, error) {
|
||||
if err == nil {
|
||||
return item.Val, nil
|
||||
}
|
||||
|
||||
if err.Error() == "EOF" {
|
||||
return nil, ErrCacheItemNotFound
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return item.Val, nil
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Delete delete a key from session.
|
||||
|
||||
Reference in New Issue
Block a user