Make load_include_configs void. Fix some cases where WD would not be restored.

This commit is contained in:
Connor E 2019-02-24 04:39:08 +00:00 committed by Brian Ashworth
parent 713883f04c
commit d4b1e71b91
3 changed files with 17 additions and 29 deletions

View file

@ -7,11 +7,8 @@ struct cmd_results *cmd_include(int argc, char **argv) {
return error;
}
if (!load_include_configs(argv[0], config,
&config->swaynag_config_errors)) {
return cmd_results_new(CMD_INVALID,
"Failed to include sub configuration file: %s", argv[0]);
}
// We don't care if the included config(s) fails to load.
load_include_configs(argv[0], config, &config->swaynag_config_errors);
return cmd_results_new(CMD_SUCCESS, NULL);
}