]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/repository/git.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:55:26 +0000 (14:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:55:26 +0000 (14:55 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19174 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/git.rb

index 839a2667664c58b163b7a03e8a34e3a738dc96dc..97ae64e88a37b3f64810bd09cc324fd115af535a 100644 (file)
@@ -43,8 +43,10 @@ class Repository::Git < Repository
 
   def report_last_commit
     return false if extra_info.nil?
+
     v = extra_info["extra_report_last_commit"]
     return false if v.nil?
+
     v.to_s != '0'
   end
 
@@ -244,11 +246,13 @@ 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?
+
     changesets.where(:scmid => revisions.map {|c| c.scmid}).to_a
   end
 
   def clear_extra_info_of_changesets
     return if extra_info.nil?
+
     v = extra_info["extra_report_last_commit"]
     write_attribute(:extra_info, nil)
     h = {}