mirror of https://github.com/redis/redis.git
Update tests/modules/moduleconfigs.c
missing else clause Co-authored-by: debing.sun <debing.sun@redis.com>
This commit is contained in:
parent
7a40fd630d
commit
d9134f8f95
|
@ -252,7 +252,7 @@ int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
|
|||
size_t len;
|
||||
if (argc && !strcasecmp(RedisModule_StringPtrLen(argv[0], &len), "noload")) {
|
||||
return REDISMODULE_OK;
|
||||
} if (argc && !strcasecmp(RedisModule_StringPtrLen(argv[0], &len), "override-default")) {
|
||||
} else if (argc && !strcasecmp(RedisModule_StringPtrLen(argv[0], &len), "override-default")) {
|
||||
if (RedisModule_LoadDefaultConfigs(ctx) == REDISMODULE_ERR) {
|
||||
RedisModule_Log(ctx, "warning", "Failed to load default configuration");
|
||||
goto err;
|
||||
|
|
Loading…
Reference in New Issue