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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue