From: Shaun McDonald Date: Fri, 3 Oct 2008 13:57:20 +0000 (+0000) Subject: Changing if not to unless to make code more readable. X-Git-Tag: live~7609^2~295 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5daeb1b0632f03f6c93490452cf7cff174b353ca Changing if not to unless to make code more readable. --- diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 8668611eb..8950126b4 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -57,7 +57,7 @@ class ChangesetController < ApplicationController def close begin - if not request.put? + unless request.put? render :nothing => true, :status => :method_not_allowed return end @@ -71,7 +71,7 @@ class ChangesetController < ApplicationController end def upload - if not request.put? + unless request.put? render :nothing => true, :status => :method_not_allowed return end