summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 12:34:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 12:34:09 +0000
commit7d03976e6a2aea66088395accaff4b58cb7f093f (patch)
tree05346188d19b79f23b1d4316ae56034bdf591db1
parent08918ce867f79347adfddbe41369674904ce7fbb (diff)
downloadredmine-7d03976e6a2aea66088395accaff4b58cb7f093f.tar.gz
redmine-7d03976e6a2aea66088395accaff4b58cb7f093f.zip
cleanup: rubocop: fix Layout/SpaceInsideParens in app/models/repository/mercurial.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18955 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--app/models/repository/mercurial.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index ef0bcf22b..876870e1b 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -322,7 +322,6 @@ Layout/SpaceInsideParens:
- 'app/helpers/issues_helper.rb'
- 'app/models/auth_source_ldap.rb'
- 'app/models/repository/cvs.rb'
- - 'app/models/repository/mercurial.rb'
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
- 'lib/redmine/scm/adapters/git_adapter.rb'
diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb
index 69f7bebdc..abe0aceda 100644
--- a/app/models/repository/mercurial.rb
+++ b/app/models/repository/mercurial.rb
@@ -159,7 +159,7 @@ class Repository::Mercurial < Repository
# But, it is very heavy.
# Mercurial does not treat directory.
# So, "hg log DIR" is very heavy.
- branch_limit = path.blank? ? limit : ( limit * 5 )
+ branch_limit = path.blank? ? limit : (limit * 5)
args << nodes_in_branch(rev, branch_limit)
elsif last = rev ? find_changeset_by_name(tag_scmid(rev) || rev) : nil
cond << "#{Changeset.table_name}.id <= ?"