[Hiki-cvs 1584] hiki/hiki @ f7b97ab [master] Use extracted local variable

Back to archive index

Kenji Okimoto null****@okkez*****
2013年 11月 21日 (木) 11:03:06 JST


Kenji Okimoto	2013-11-21 11:03:06 +0900 (Thu, 21 Nov 2013)

  New Revision: f7b97aba5476c37ad3602c8c103c9fef4d19bbb1
  https://github.com/hiki/hiki/commit/f7b97aba5476c37ad3602c8c103c9fef4d19bbb1

  Message:
    Use extracted local variable

  Modified files:
    tool/convert.rb

  Modified: tool/convert.rb (+1 -1)
===================================================================
--- tool/convert.rb    2013-11-21 10:46:12 +0900 (b244237)
+++ tool/convert.rb    2013-11-21 11:03:06 +0900 (919fc6f)
@@ -76,7 +76,7 @@ def convert_attachments(data_path, old_page, new_page)
         FileUtils.mv(old_file_fullpath, new_file_fullpath)
       end
     end
-    if Hiki::Util.escape(old_page) != Hiki::Util.escape(new_page)
+    if escaped_old_page != escaped_new_page
       FileUtils.mv(old_attachments_dir, new_attachments_dir)
     end
   end




Hiki-cvs メーリングリストの案内
Back to archive index