Commit 83f55f61 authored by WuYunlong's avatar WuYunlong Committed by Oran Agra
Browse files

Refactor RM_KeyType() by using macro. (#7486)


(cherry picked from commit dc690161)
parent f89f50db
......@@ -2044,7 +2044,7 @@ int RM_KeyType(RedisModuleKey *key) {
case OBJ_HASH: return REDISMODULE_KEYTYPE_HASH;
case OBJ_MODULE: return REDISMODULE_KEYTYPE_MODULE;
case OBJ_STREAM: return REDISMODULE_KEYTYPE_STREAM;
default: return 0;
default: return REDISMODULE_KEYTYPE_EMPTY;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment