Skip to content

Commit 476a57a

Browse files
amandaharthdavid22swan
authored andcommitted
Use unless, instead of negated if
1 parent a5e4bb1 commit 476a57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/resource_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def self.rsapi_provider_get(names = nil)
265265
rsapi_provider_get_cache.add(build_title(type_definition, resource_hash), resource_hash)
266266
end
267267

268-
if !type_definition.feature?('simple_get_filter')
268+
unless type_definition.feature?('simple_get_filter')
269269
# Mark the cache as having all possible instances:
270270
rsapi_provider_get_cache.cached_all
271271
end

0 commit comments

Comments
 (0)