mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Update tests/modules/moduleconfigs.c
missing else clause Co-authored-by: debing.sun <debing.sun@redis.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user