From: Simon Poole Date: Thu, 31 Jan 2019 08:44:31 +0000 (+0100) Subject: Remove unnecessary test for 0 X-Git-Tag: live~2553^2~5 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fa81a608f7d5a90f0030c302843f7a3a103e6eff?hp=e488a7e862c1f9081afed2dc8b451f5e311c95cc Remove unnecessary test for 0 --- diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 925d8752f..4b56dc033 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -36,7 +36,7 @@ class UsersController < ApplicationController def save @title = t "users.new.title" - if params[:decline] || !params[:read_tou] || params[:read_tou] == "0" + if params[:decline] || !params[:read_tou] if current_user current_user.terms_seen = true