Skip to content

Commit

Permalink
Simple precedence of task-specific config over pattern config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Sep 24, 2023
1 parent 7e08ce2 commit 29eb8a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/conf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,13 @@ namespace mob {

MOB_ASSERT(!tasks.empty());

for (auto& t : tasks)
for (auto& t : tasks) {
if (t->name() != task &&
details::find_string_for_task(t->name(), key)) {
continue;
}
details::set_string_for_task(t->name(), key, value);
}
}
else {
// global task option
Expand Down

0 comments on commit 29eb8a7

Please sign in to comment.