1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-22 08:21:14 +00:00

use a normal unless-statement over a modifier clause in a multiline statement at app/models/repository/bazaar.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19875 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-07-09 15:18:47 +00:00
parent a9ac06fea5
commit c7213ab4d6

View File

@ -100,6 +100,7 @@ class Repository::Bazaar < Repository
# loads changesets by batches of 200
identifier_to = [identifier_from + 199, scm_revision].min
revisions = scm.revisions('', identifier_to, identifier_from)
unless revisions.nil?
transaction do
revisions.reverse_each do |revision|
changeset = Changeset.create(:repository => self,
@ -116,7 +117,8 @@ class Repository::Bazaar < Repository
:revision => change[:revision])
end
end
end unless revisions.nil?
end
end
identifier_from = identifier_to + 1
end
end