mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(rubocop) Fix Style/AndOr
This commit is contained in:
parent
874a6e7cf6
commit
79f764560d
2 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ class Vmfloaty
|
|||
|
||||
max_pool_request = 5
|
||||
large_pool_requests = os_types.select{|_,v| v > max_pool_request}
|
||||
if ! large_pool_requests.empty? and ! force
|
||||
if ! large_pool_requests.empty? && ! force
|
||||
STDERR.puts "Requesting vms over #{max_pool_request} requires a --force flag."
|
||||
STDERR.puts 'Try again with `floaty get --force`'
|
||||
exit 1
|
||||
|
|
@ -144,7 +144,7 @@ class Vmfloaty
|
|||
hostname = args[0]
|
||||
modify_all = options.all
|
||||
|
||||
if hostname.nil? and !modify_all
|
||||
if hostname.nil? && !modify_all
|
||||
STDERR.puts 'ERROR: Provide a hostname or specify --all.'
|
||||
exit 1
|
||||
end
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class Http
|
|||
|
||||
uri = URI.parse(url)
|
||||
|
||||
if uri.is_a?(URI::HTTP) or uri.is_a?(URI::HTTPS)
|
||||
if uri.is_a?(URI::HTTP) || uri.is_a?(URI::HTTPS)
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue