Skip to content

Commit cc686aa

Browse files
committed
Layout/MultilineAssignmentLayout
1 parent bf1d299 commit cc686aa

File tree

1 file changed

+12
-10
lines changed
  • lib/puppet/provider/package

1 file changed

+12
-10
lines changed

lib/puppet/provider/package/yum.rb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -380,16 +380,18 @@ def disableexcludes
380380
def scan_options(options, key)
381381
return [] unless options.is_a?(Enumerable)
382382

383-
values = options.map do |repo|
384-
value = if repo.is_a?(String)
385-
next unless repo.include?('=')
386-
387-
Hash[*repo.strip.split('=')] # make it a hash
388-
else
389-
repo
390-
end
391-
value[key]
392-
end
383+
values =
384+
options.map do |repo|
385+
value =
386+
if repo.is_a?(String)
387+
next unless repo.include?('=')
388+
389+
Hash[*repo.strip.split('=')] # make it a hash
390+
else
391+
repo
392+
end
393+
value[key]
394+
end
393395
values.compact.uniq
394396
end
395397
end

0 commit comments

Comments
 (0)