From c0caa1cf542d452fdc1eb74a7e5511c683ec5d5d Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 10 Mar 2012 11:09:43 +0100 Subject: Minor code aesthetic change to use Redis code base style rule of saving vertical space when possible. --- src/t_hash.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/t_hash.c') diff --git a/src/t_hash.c b/src/t_hash.c index f0ecefc32..b09ff41ea 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -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; } -- cgit v1.2.1