# HG changeset patch # User nanaya # Date 1433597792 -32400 # Node ID e84276bf344ab319f2957d2f187eea0a7d019049 # Parent 4e6afc8140fb2a95a4218c45b6c603a59bcb7abe Immediate return instead of unless ... end. diff -r 4e6afc8140fb -r e84276bf344a app/controllers/pastes_controller.rb --- a/app/controllers/pastes_controller.rb Sat Jun 06 22:35:21 2015 +0900 +++ b/app/controllers/pastes_controller.rb Sat Jun 06 22:36:32 2015 +0900 @@ -62,9 +62,9 @@ def lowercase_path correct_path = request.fullpath.downcase - unless correct_path == request.fullpath - redirect_to correct_path, :status => :moved_permanently - end + return if correct_path == request.fullpath + + redirect_to correct_path, :status => :moved_permanently end def paste_params