Skip to content

Commit

Permalink
Removed unnecessary ternaries
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt authored and radar committed Feb 13, 2013
1 parent cefd2e3 commit 17925de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/app/models/spree/adjustment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def display_amount
end

def immutable?
state == "open" ? false : true
state != "open"
end

def finalized?
state == "finalized" ? true : false
state == "finalized"
end

private
Expand Down

0 comments on commit 17925de

Please sign in to comment.