Changing if not to unless to make code more readable.
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Fri, 3 Oct 2008 13:57:20 +0000 (13:57 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Fri, 3 Oct 2008 13:57:20 +0000 (13:57 +0000)
app/controllers/changeset_controller.rb

index 8668611eb0417251c4bd227427bfd8ce42e5cd78..8950126b4d86d77fff189a023b71ce85d7a89ed3 100644 (file)
@@ -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