mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -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
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
return false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.get_conn(verbose, url)
|
def self.get_conn(verbose, url)
|
||||||
|
|
@ -33,7 +33,7 @@ class Http
|
||||||
faraday.adapter Faraday.default_adapter
|
faraday.adapter Faraday.default_adapter
|
||||||
end
|
end
|
||||||
|
|
||||||
return conn
|
conn
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.get_conn_with_auth(verbose, url, user, password)
|
def self.get_conn_with_auth(verbose, url, user, password)
|
||||||
|
|
@ -56,7 +56,7 @@ class Http
|
||||||
faraday.adapter Faraday.default_adapter
|
faraday.adapter Faraday.default_adapter
|
||||||
end
|
end
|
||||||
|
|
||||||
return conn
|
conn
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class Ssh
|
||||||
return exe if File.executable?(exe) && !File.directory?(exe)
|
return exe if File.executable?(exe) && !File.directory?(exe)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
return nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.ssh(verbose, host_os, token, url)
|
def self.ssh(verbose, host_os, token, url)
|
||||||
|
|
@ -40,6 +40,6 @@ class Ssh
|
||||||
else
|
else
|
||||||
raise "Could not get vm from vmpooler:\n #{response}"
|
raise "Could not get vm from vmpooler:\n #{response}"
|
||||||
end
|
end
|
||||||
return
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue