Skip to content

Commit 6bfdbae

Browse files
committed
Clean code
1 parent f3b5274 commit 6bfdbae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/capistrano/solid_queue.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def execute_systemd(*args, raise_on_non_zero_exit: true)
3030

3131
def sudo_if_needed(*command, raise_on_non_zero_exit: true)
3232
if fetch(:solid_queue_systemctl_user) == :system
33-
backend.sudo command.map(&:to_s).join(" ")
33+
backend.sudo command.join(" ")
3434
else
3535
backend.execute(*command, raise_on_non_zero_exit: raise_on_non_zero_exit)
3636
end

0 commit comments

Comments
 (0)