Patch #37614 » 0004-Fix-RuboCop-offense-Style-GuardClause.patch
app/models/repository/git.rb | ||
---|---|---|
90 | 90 |
end |
91 | 91 | |
92 | 92 |
def find_changeset_by_name(name) |
93 |
if name.present?
|
|
94 |
changesets.find_by(:revision => name.to_s) || |
|
95 |
changesets.where('scmid LIKE ?', "#{name}%").first
|
|
96 |
end
|
|
93 |
return if name.blank?
|
|
94 | ||
95 |
changesets.find_by(:revision => name.to_s) ||
|
|
96 |
changesets.where('scmid LIKE ?', "#{name}%").first
|
|
97 | 97 |
end |
98 | 98 | |
99 | 99 |
def scm_entries(path=nil, identifier=nil) |