lib/openwfe/storage/yamlfilestorage.rb in openwferu-0.9.13 vs lib/openwfe/storage/yamlfilestorage.rb in openwferu-0.9.14

- old
+ new

@@ -138,12 +138,14 @@ def [] (fei) fei_path = compute_file_path(fei) if not File.exist?(fei_path) + ldebug { "[] didn't find file at #{fei_path}" } #puts "[] didn't find file at #{fei_path}" + return nil end load_object(fei_path) end @@ -182,10 +184,11 @@ next unless File.exist? path next if File.stat(path).directory? count += 1 if OpenWFE::ends_with(path, ".yaml") end - return count + + count end # # Passes each object path to the given block #