null+****@clear*****
null+****@clear*****
Mon Jun 11 11:30:05 JST 2012
SUZUKI Miho 2012-06-11 11:30:05 +0900 (Mon, 11 Jun 2012) New Revision: c1affe7f27941366bd65467acb20d97b0afd2d30 Log: Remove unnecessary condition Modified files: lib/logaling/repository.rb Modified: lib/logaling/repository.rb (+3 -3) =================================================================== --- lib/logaling/repository.rb 2012-06-11 11:21:34 +0900 (9f12854) +++ lib/logaling/repository.rb 2012-06-11 11:30:05 +0900 (334d350) @@ -26,7 +26,7 @@ module Logaling end def register(dot_logaling_path, register_name) - FileUtils.mkdir_p(logaling_projects_path) unless File.exist?(logaling_projects_path) + FileUtils.mkdir_p(logaling_projects_path) symlink_path = File.join(logaling_projects_path, register_name) unless File.exist?(symlink_path) FileUtils.ln_s(dot_logaling_path, symlink_path) @@ -49,7 +49,7 @@ module Logaling end def import(glossary_source) - FileUtils.mkdir_p(cache_path) unless File.exist?(cache_path) + FileUtils.mkdir_p(cache_path) Dir.chdir(cache_path) do glossary_source.import end @@ -58,7 +58,7 @@ module Logaling end def import_tmx(glossary_source, glossary_info) - FileUtils.mkdir_p(cache_path) unless File.exist?(cache_path) + FileUtils.mkdir_p(cache_path) Dir.chdir(cache_path) do glossary_source.import(glossary_info) end