mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(rubocop) Fix Style/IfUnlessModifier
This commit is contained in:
parent
c7c8e48e2f
commit
7bafee35a7
7 changed files with 15 additions and 45 deletions
|
|
@ -41,9 +41,7 @@ class Utils
|
|||
|
||||
response_body.each do |os, value|
|
||||
hostnames = Array(value['hostname'])
|
||||
if domain
|
||||
hostnames.map! {|host| "#{host}.#{domain}"}
|
||||
end
|
||||
hostnames.map! {|host| "#{host}.#{domain}"} if domain
|
||||
result[os] = hostnames
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue