Skip to content

Commit

Permalink
Simplify check by removing extra assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Nov 20, 2014
1 parent 309bfbf commit a1cb555
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ def can_access?(level)
# Return true if the starting level is high enough to execute
# this action. This is used by User.js.
def need_signup?(level)
needed_level = User.get_user_level(level)
starting_level = CONFIG["starting_level"]
starting_level >= needed_level
CONFIG["starting_level"] >= User.get_user_level(level)
end

# Submit tag with a twist: removes name from tag form data so it doesn't add
Expand Down

0 comments on commit a1cb555

Please sign in to comment.