spec/support/file_manager.rb in lokalise_manager-2.2.1 vs spec/support/file_manager.rb in lokalise_manager-3.0.0
- old
+ new
@@ -2,10 +2,12 @@
require 'fileutils'
module FileManager
def mkdir_locales
- FileUtils.mkdir_p(LokaliseManager::GlobalConfig.locales_path) unless File.directory?(LokaliseManager::GlobalConfig.locales_path)
+ return if File.directory?(LokaliseManager::GlobalConfig.locales_path)
+
+ FileUtils.mkdir_p(LokaliseManager::GlobalConfig.locales_path)
end
def rm_translation_files
FileUtils.rm_rf locales_dir
end