Skip to content

Commit

Permalink
fix: tasklist empty error
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Nov 21, 2023
1 parent 5da90c2 commit 398cc2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/cli/Config/TasksConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ bool TasksConfig::parse(const json::value& config_opt)
Task task;
task.name = el.get("name", "");
task.status = el.get("status", true);
if (!task.status) {
continue;
}
task.param = el.get("param", json::object());
task.type = el.get("type", "");
_config_tasklist.emplace_back(task);
_config_tasklist.emplace_back(std::move(task));
}

return true;
Expand Down

0 comments on commit 398cc2c

Please sign in to comment.