diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-24 15:41:39 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-24 15:41:39 +0000 |
commit | 947fdf100da845f1ae12c6176a4ae7bb96e0c693 (patch) | |
tree | c5332d360d87a712a07e2d43159b635b2b922b55 /lib | |
parent | 2829ddcc33109220d35d11436f9e5bc22b437c36 (diff) | |
download | redmine-947fdf100da845f1ae12c6176a4ae7bb96e0c693.tar.gz redmine-947fdf100da845f1ae12c6176a4ae7bb96e0c693.zip |
code cleanup: rubocop: fix Rails/Presence in lib/redmine/scm/adapters/cvs_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18518 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/scm/adapters/cvs_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb index 6c6627935..e0a8cd4d8 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -63,7 +63,7 @@ module Redmine # password -> unnecessary too def initialize(url, root_url=nil, login=nil, password=nil, path_encoding=nil) - @path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding + @path_encoding = path_encoding.presence || 'UTF-8' @url = url # TODO: better Exception here (IllegalArgumentException) raise CommandFailed if root_url.blank? |