lib/modules/db_yaml.rb in codebreaker_karolina-0.1.4 vs lib/modules/db_yaml.rb in codebreaker_karolina-0.1.5
- old
+ new
@@ -21,9 +21,11 @@
end
private
def load_file_stats
+ return unless File.file?(FILE_NAME)
+
YAML.load_stream(File.open(FILE_NAME))
end
end
end