Remove unnecessary lua eval

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-08-10 07:45:37 +03:00
parent 3a50e5e403
commit 3e4d4514ad

View File

@@ -340,13 +340,6 @@ ConfigManager *config_manager_create(char const *path)
return NULL;
}
if (cm->path && load_config_file(cm->L, cm->path) == 0) {
if (config_load_ref(cm->L, -1, &cm->cfg) != 0) {
lua_pop(cm->L, 1);
} else {
lua_pop(cm->L, 1);
}
}
return cm;
}