Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic committed Nov 19, 2024
1 parent bc1c3d8 commit 98380fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/vagrant-scp-sync/action/scp_sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ def self.scp_single(machine, opts)
machine.ui.info(I18n.t('vagrant.scp_folder', source_files: source_files, target_files: target_files))

command += [command_opts]

r = Vagrant::Util::Subprocess.execute(*command)
unless r.exit_code == 0
raise Vagrant::Errors::SyncedFolderScpSyncError,
command: command.inspect,
source_files: source_files,
target_files: target_files,
stderr: r.stderr
end

return if r.exit_code.zero?

raise Vagrant::Errors::SyncedFolderScpSyncError,
command: command.inspect,
source_files: source_files,
target_files: target_files,
stderr: r.stderr
end
end
end
Expand Down

0 comments on commit 98380fc

Please sign in to comment.