(rubocop) Fix Style/IfUnlessModifier

This commit is contained in:
Tim Sharpe 2019-02-03 11:14:23 +11:00
parent c7c8e48e2f
commit 7bafee35a7
7 changed files with 15 additions and 45 deletions

View file

@ -17,9 +17,7 @@ class Ssh
def self.ssh(verbose, host_os, token, url)
ssh_path = which('ssh')
if !ssh_path
raise 'Could not determine path to ssh'
end
raise 'Could not determine path to ssh' if !ssh_path
os_types = {}
os_types[host_os] = 1