]> git.saurik.com Git - redis.git/blobdiff - src/t_hash.c
Minor code aesthetic change to use Redis code base style rule of saving vertical...
[redis.git] / src / t_hash.c
index f0ecefc32aa654f1b3a74bce47d841c1a6f3fd3d..b09ff41ea58ba79069dd61edefa0a6486b53b0ef 100644 (file)
@@ -75,10 +75,7 @@ int hashTypeGetFromHashTable(robj *o, robj *field, robj **value) {
     redisAssert(o->encoding == REDIS_ENCODING_HT);
 
     de = dictFind(o->ptr, field);
-    if (de == NULL) {
-        return -1;
-    }
-
+    if (de == NULL) return -1;
     *value = dictGetVal(de);
     return 0;
 }