mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +00:00
Fix RuboCop offense Rails/Blank (#37614).
git-svn-id: https://svn.redmine.org/redmine/trunk@21840 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
215f6d7449
commit
02f17b6d2b
@ -133,7 +133,7 @@ class Repository::Git < Repository
|
||||
# before fetching changesets (eg. for offline resync)
|
||||
def fetch_changesets
|
||||
scm_brs = branches
|
||||
return if scm_brs.nil? || scm_brs.empty?
|
||||
return if scm_brs.blank?
|
||||
|
||||
h1 = extra_info || {}
|
||||
h = h1.dup
|
||||
@ -246,7 +246,7 @@ class Repository::Git < Repository
|
||||
|
||||
def latest_changesets(path, rev, limit=10)
|
||||
revisions = scm.revisions(path, nil, rev, :limit => limit, :all => false)
|
||||
return [] if revisions.nil? || revisions.empty?
|
||||
return [] if revisions.blank?
|
||||
|
||||
changesets.where(:scmid => revisions.map {|c| c.scmid}).to_a
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user