[#607] *: Remove redundant if on error returns

Semantic patch:
```
@@
@@
-if err != nil { return err }
-return nil
+return err
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-08-14 14:06:17 +03:00 committed by Evgenii Stratonikov
parent 5a51b78946
commit a8de37c8a2
7 changed files with 8 additions and 39 deletions

View file

@ -102,11 +102,7 @@ func (s *TokenStore) Get(ownerID user.ID, tokenID []byte) (t *storage.PrivateTok
var err error
t, err = s.unpackToken(rawToken)
if err != nil {
return err
}
return nil
return err
})
if err != nil {
s.l.Error(logs.PersistentCouldNotGetSessionFromPersistentStorage,