mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-25 21:28:40 -05:00
(rubocop) Fix Style/ConditionalAssignment
This commit is contained in:
parent
af6dc740e4
commit
426e9ce96b
1 changed files with 1 additions and 6 deletions
|
|
@ -66,12 +66,7 @@ class Utils
|
|||
os_types = {}
|
||||
os_args.each do |arg|
|
||||
os_arr = arg.split('=')
|
||||
if os_arr.size == 1
|
||||
# assume they didn't specify an = sign if split returns 1 size
|
||||
os_types[os_arr[0]] = 1
|
||||
else
|
||||
os_types[os_arr[0]] = os_arr[1].to_i
|
||||
end
|
||||
os_types[os_arr[0]] = os_arr.size == 1 ? 1 : os_arr[1].to_i
|
||||
end
|
||||
os_types
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue