mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Minor code aesthetic change to use Redis code base style rule of saving vertical space when possible.
This commit is contained in:
parent
d22248ae99
commit
c0caa1cf54
@ -75,10 +75,7 @@ int hashTypeGetFromHashTable(robj *o, robj *field, robj **value) {
|
|||||||
redisAssert(o->encoding == REDIS_ENCODING_HT);
|
redisAssert(o->encoding == REDIS_ENCODING_HT);
|
||||||
|
|
||||||
de = dictFind(o->ptr, field);
|
de = dictFind(o->ptr, field);
|
||||||
if (de == NULL) {
|
if (de == NULL) return -1;
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
*value = dictGetVal(de);
|
*value = dictGetVal(de);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user