Changing if not to unless to make code more readable.
This commit is contained in:
parent
40414cf324
commit
5daeb1b063
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class ChangesetController < ApplicationController
|
||||||
|
|
||||||
def close
|
def close
|
||||||
begin
|
begin
|
||||||
if not request.put?
|
unless request.put?
|
||||||
render :nothing => true, :status => :method_not_allowed
|
render :nothing => true, :status => :method_not_allowed
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -71,7 +71,7 @@ class ChangesetController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def upload
|
def upload
|
||||||
if not request.put?
|
unless request.put?
|
||||||
render :nothing => true, :status => :method_not_allowed
|
render :nothing => true, :status => :method_not_allowed
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue