Skip to content

Commit

Permalink
Use builtin union instead of Array#union
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Sep 21, 2020
1 parent 39bc71d commit 9ea266c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/AutoInstallRules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def classes_to_merge
if profile_class.keys.include?("dont_merge")
AutoinstConfig.dontmerge = [] if @dontmergeIsDefault
not_mergeable = profile_class.fetch("dont_merge", [])
AutoinstConfig.dontmerge = (AutoinstConfig.dontmerge || []).union(not_mergeable)
AutoinstConfig.dontmerge = Builtins.union(AutoinstConfig.dontmerge || [], not_mergeable)
@dontmergeIsDefault = false
log.info("user defined dont_merge for class found. " \
"dontmerge is #{AutoinstConfig.dontmerge}")
Expand Down

0 comments on commit 9ea266c

Please sign in to comment.