(rubocop) Fix Style/RedundantReturn

This commit is contained in:
Tim Sharpe 2019-02-03 10:56:46 +11:00
parent 0d95977db3
commit 42014ae39f
2 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ class Http
return true
end
return false
false
end
def self.get_conn(verbose, url)
@ -33,7 +33,7 @@ class Http
faraday.adapter Faraday.default_adapter
end
return conn
conn
end
def self.get_conn_with_auth(verbose, url, user, password)
@ -56,7 +56,7 @@ class Http
faraday.adapter Faraday.default_adapter
end
return conn
conn
end
end

View file

@ -12,7 +12,7 @@ class Ssh
return exe if File.executable?(exe) && !File.directory?(exe)
}
end
return nil
nil
end
def self.ssh(verbose, host_os, token, url)
@ -40,6 +40,6 @@ class Ssh
else
raise "Could not get vm from vmpooler:\n #{response}"
end
return
nil
end
end