diff options
Diffstat (limited to 'lib/puppet/util/autoload')
-rw-r--r-- | lib/puppet/util/autoload/file_cache.rb | 4 |
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 |