(rubocop) Fix Style/IfUnlessModifier

This commit is contained in:
Tim Sharpe 2019-02-03 11:14:23 +11:00
parent c7c8e48e2f
commit 7bafee35a7
7 changed files with 15 additions and 45 deletions

View file

@ -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