lib/berkshelf/resolver/graph.rb in berkshelf-5.5.0 vs lib/berkshelf/resolver/graph.rb in berkshelf-5.6.0
- old
+ new
@@ -48,10 +48,10 @@
# @param [Array<Berkshelf::Source>, Berkshelf::Source] sources
#
# @return [Array<Berkshelf::RemoteCookbook>]
def universe(sources)
cookbooks = []
- Array(sources).each { |source| cookbooks = cookbooks | source.universe }
+ Array(sources).each { |source| cookbooks |= source.universe }
cookbooks
end
end
end
end