diff options
author | Go MAEDA <maeda@farend.jp> | 2019-08-25 16:15:36 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-08-25 16:15:36 +0000 |
commit | 331dcfbadc7eb827d0c62575aa0ea840fde70a33 (patch) | |
tree | e1e10c0a96134d8a0962bcc4e6e46f52cd6986a7 /app | |
parent | 0898910b1061eef9a09bd2c8b77378dcd5eb6687 (diff) | |
download | redmine-331dcfbadc7eb827d0c62575aa0ea840fde70a33.tar.gz redmine-331dcfbadc7eb827d0c62575aa0ea840fde70a33.zip |
Code cleanup: RuboCop: Fix Style/RedundantReturn in app/models/user.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18394 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/user.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 096adc4a9..9003b253f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -342,8 +342,7 @@ class User < Principal # Does the backend storage allow this user to change their password? def change_password_allowed? - return true if auth_source.nil? - return auth_source.allow_password_changes? + auth_source.nil? ? true : auth_source.allow_password_changes? end # Returns true if the user password has expired |