some updates

This commit is contained in:
ston1th 2021-12-04 17:53:19 +01:00
commit 1410847c03
43 changed files with 78 additions and 345 deletions

View file

@ -15,10 +15,7 @@ func (db *DB) Remove(sig string) error {
}
func (db *DB) Check(sig string) (ok bool) {
if db.store.Get(blacklistPrefix+sig, nil) == nil {
return true
}
return false
return db.store.Get(blacklistPrefix+sig, nil) == nil
}
func (db *DB) Map() (list jwt.BlacklistMap, err error) {