mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
(rubocop) Fix Style/RedundantReturn
This commit is contained in:
parent
0d95977db3
commit
42014ae39f
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue