mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 08:50:39 +00:00
all: simplify boolean expressions
- !(a == b) => a != b - !(a != b) => a == b Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
This commit is contained in:
@ -133,7 +133,7 @@ func (lp *Provider) SessionRead(sid string) (session.Store, error) {
|
||||
// SessionExist check ledis session exist by sid
|
||||
func (lp *Provider) SessionExist(sid string) bool {
|
||||
count, _ := c.Exists([]byte(sid))
|
||||
return !(count == 0)
|
||||
return count != 0
|
||||
}
|
||||
|
||||
// SessionRegenerate generate new sid for ledis session
|
||||
|
Reference in New Issue
Block a user