Skip to content

Commit

Permalink
Use extracted local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
okkez committed Nov 21, 2013
1 parent 581bfb6 commit f7b97ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7b97ab

Please sign in to comment.