Skip to content

Commit

Permalink
Make rubocop happy!
Browse files Browse the repository at this point in the history
  • Loading branch information
neomilium committed Oct 29, 2024
1 parent 8c24703 commit 2d07c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/choria/orchestrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def tasks_support
def run(task, targets: nil, targets_with_classes: nil, verbose: false)
rpc_client.progress = verbose
discover(targets: targets, targets_with_classes: targets_with_classes)
raise DiscoverError, 'No requests sent, no nodes discovered' if rpc_client.discover.size.zero?
raise DiscoverError, 'No requests sent, no nodes discovered' if rpc_client.discover.empty?

task.run
end
Expand Down

0 comments on commit 2d07c08

Please sign in to comment.