1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-14 03:12:53 +00:00

code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/models/repository/bazaar.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18512 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-09-24 05:13:46 +00:00
parent e5f22bd28a
commit 4c9bef2ace
2 changed files with 1 additions and 2 deletions

View File

@ -1427,7 +1427,6 @@ Style/ParenthesesAroundCondition:
- 'app/helpers/issues_helper.rb'
- 'app/models/project.rb'
- 'app/models/query.rb'
- 'app/models/repository/bazaar.rb'
- 'app/models/repository/subversion.rb'
- 'app/models/time_entry.rb'
- 'app/models/wiki_page.rb'

View File

@ -96,7 +96,7 @@ class Repository::Bazaar < Repository
if db_revision < scm_revision
logger.debug "Fetching changesets for repository #{url}" if logger && logger.debug?
identifier_from = db_revision + 1
while (identifier_from <= scm_revision)
while identifier_from <= scm_revision
# loads changesets by batches of 200
identifier_to = [identifier_from + 199, scm_revision].min
revisions = scm.revisions('', identifier_to, identifier_from)