summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/autoload')
-rw-r--r--lib/puppet/util/autoload/file_cache.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/util/autoload/file_cache.rb b/lib/puppet/util/autoload/file_cache.rb
index 881e08637..873dc8fb7 100644
--- a/lib/puppet/util/autoload/file_cache.rb
+++ b/lib/puppet/util/autoload/file_cache.rb
@@ -48,9 +48,7 @@ module Puppet::Util::Autoload::FileCache
def found_file?(path, type = nil)
if data = found_files[path] and ! data_expired?(data[:time])
- if type and ! data[:stat].send(type)
- return false
- end
+ return false if type and ! data[:stat].send(type)
return true
else
return false