mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
lint & logging fixes.
This commit is contained in:
@ -117,10 +117,7 @@ func (manager *SessionManagerCtx) Delete(id string) error {
|
||||
return fmt.Errorf("Session id not found.")
|
||||
}
|
||||
|
||||
if _, ok := manager.tokens[session.token]; ok {
|
||||
delete(manager.tokens, session.token)
|
||||
}
|
||||
|
||||
delete(manager.tokens, session.token)
|
||||
delete(manager.sessions, id)
|
||||
manager.sessionsMu.Unlock()
|
||||
|
||||
|
Reference in New Issue
Block a user