Skip to content

Commit

Permalink
chore: simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wvmcastro committed Feb 7, 2025
1 parent 9619635 commit d726d8e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/syskit/network_generation/merge_solver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ def may_merge_task_contexts?(merged_task, task)

def mergeable_agents?(merged_task, task)
unless merge_task_contexts_with_same_agent?
return true unless task.execution_agent && merged_task.execution_agent

return false
return !(task.execution_agent && merged_task.execution_agent)
end

return false unless task.execution_agent && merged_task.execution_agent
Expand Down

0 comments on commit d726d8e

Please sign in to comment.