@@ -186,11 +186,10 @@ func (rc *ClusterRedisClient) IsExist(key string) bool {
return false
}
if result == 0 {
- err = rc.redisClient.HDel(context.TODO(), DefaultKey, key).Err()
- if err != nil {
- return false
- }
+ _ = rc.redisClient.HDel(context.TODO(), DefaultKey, key).Err()
+ return false
+
return true
@@ -178,11 +178,10 @@ func (rc *StandaloneRedisClient) IsExist(key string) bool {