File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 77AllCops :
88 DisplayCopNames : true
99 NewCops : enable
10- TargetRubyVersion : ' 2.7 '
10+ TargetRubyVersion : ' 2.6 '
1111 ExtraDetails : true
1212 DisplayStyleGuide : true
1313 Include :
Original file line number Diff line number Diff line change @@ -190,14 +190,14 @@ def exists?
190190
191191 def fragments
192192 # Collect fragments that target this resource by path, title or tag.
193- @fragments ||= catalog . resources . filter_map do |resource |
193+ @fragments ||= catalog . resources . map { |resource |
194194 next unless resource . is_a? ( Puppet ::Type . type ( :concat_fragment ) )
195195
196196 if resource [ :target ] == self [ :path ] || resource [ :target ] == title ||
197197 ( resource [ :tag ] && resource [ :tag ] == self [ :tag ] )
198198 resource
199199 end
200- end
200+ } . compact
201201 end
202202
203203 def decompound ( d )
You can’t perform that action at this time.
0 commit comments