diff options
author | Go MAEDA <maeda@farend.jp> | 2023-03-24 23:17:35 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-03-24 23:17:35 +0000 |
commit | 18275bd02896a69efcc9980f08afd11523c93111 (patch) | |
tree | 13e2c597f73659465292705ab6b490b24d253fe7 /lib/redmine | |
parent | 251a4bfd676c0166f773e38ed0914327e7ece63e (diff) | |
download | redmine-18275bd02896a69efcc9980f08afd11523c93111.tar.gz redmine-18275bd02896a69efcc9980f08afd11523c93111.zip |
Fix RuboCop offense Rails/Presence in lib/redmine/scm/adapters/abstract_adapter.rb (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22150 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/scm/adapters/abstract_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index 087f62e4c..88a62fd6d 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -72,9 +72,9 @@ module Redmine def initialize(url, root_url=nil, login=nil, password=nil, path_encoding=nil) @url = url - @login = login if login && !login.empty? + @login = login if login.present? @password = (password || "") if @login - @root_url = root_url.blank? ? retrieve_root_url : root_url + @root_url = root_url.presence || retrieve_root_url @path_encoding = path_encoding.presence || 'UTF-8' end |