lib/modules/storage.rb in codebreaker_kolyanjy-0.1.3 vs lib/modules/storage.rb in codebreaker_kolyanjy-0.1.4

- old
+ new

@@ -7,10 +7,10 @@ create_storage unless storage_exist? File.open(FILE_PATH, 'w') { |file| file.write data.to_yaml } end def restore_storage - storage_exist? ? YAML.load_stream(File.open(FILE_PATH)) : [] + storage_exist? ? YAML.load(File.open(FILE_PATH)) : [] end private def storage_exist?