Unverified Commit dc690161 authored by WuYunlong's avatar WuYunlong Committed by GitHub
Browse files

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

parent a176cb56
......@@ -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