fix golangci-lint failed (#284)

* fix golangci-lint error
This commit is contained in:
silenceper authored and GitHub committed 2020-06-24 14:36:33 +08:00
1 parent b5c70cc206
commit 868b31cb3d
31 files changed
+175 -155

No files matched your search

+1 -4
View File
@@ -95,10 +95,7 @@ func (r *Redis) IsExist(key string) bool {
a, _ := conn.Do("EXISTS", key)
i := a.(int64)
if i > 0 {
return true
}
return false
return i > 0
}
//Delete 删除