mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-04 09:19:29 +02:00
lint & logging fixes.
This commit is contained in:
parent
58d029f455
commit
a9aa62f062
7 changed files with 14 additions and 13 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue