Skip to content

Commit 616bdc0

Browse files
committed
rubocop unsafe corrections
1 parent 374de81 commit 616bdc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rspec-puppet/matchers/create_generic.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def precedes?(first, second)
320320
before_refs = relationship_refs(u, :before) + relationship_refs(u, :notify)
321321
require_refs = relationship_refs(v, :require) + relationship_refs(u, :subscribe)
322322

323-
return true if before_refs.include?(v.to_ref) || require_refs.include?(u.to_ref) || (before_refs & require_refs).any?
323+
return true if before_refs.include?(v.to_ref) || require_refs.include?(u.to_ref) || before_refs.intersect?(require_refs)
324324
end
325325
end
326326

lib/rspec-puppet/support.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def site_pp_str
128128
File.read(path)
129129
elsif File.directory?(path)
130130
# Read and concatenate all .pp files.
131-
Dir[File.join(path, '*.pp')].sort.map do |f|
131+
Dir[File.join(path, '*.pp')].map do |f|
132132
File.read(f)
133133
end.join("\n")
134134
else

0 commit comments

Comments
 (0)