summaryrefslogtreecommitdiff
path: root/src/t_hash.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-03-10 11:09:43 +0100
committerantirez <antirez@gmail.com>2012-03-10 11:09:43 +0100
commitc0caa1cf542d452fdc1eb74a7e5511c683ec5d5d (patch)
tree32574966a7efbb760f73dceb4f9786da345a7297 /src/t_hash.c
parentd22248ae99543e74a93c88b9311f23a56231c83c (diff)
downloadredis-c0caa1cf542d452fdc1eb74a7e5511c683ec5d5d.tar.gz
Minor code aesthetic change to use Redis code base style rule of saving vertical space when possible.
Diffstat (limited to 'src/t_hash.c')
-rw-r--r--src/t_hash.c5
1 files changed, 1 insertions, 4 deletions
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;
}