Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
bugfix: check if token was found
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Feb 22, 2020
1 parent 03d208b commit de20057
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manager/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,9 @@ func (s *storage) DeleteTokenTrans(hash string) (valid bool, trans *transaction,
if err != nil {
return false, nil, err
}
if tokenMeta == nil {
return false, nil, nil
}
// some old tokens may still be unpurged
if tokenMeta.ExpiresAt < model.UnixTime() {
return false, nil, nil
Expand Down

0 comments on commit de20057

Please sign in to comment.