mirror of
https://github.com/redmine/redmine.git
synced 2026-02-05 14:20:22 +01:00
add empty line after guard clause to app/models/repository.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20044 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -167,6 +167,7 @@ class Repository < ActiveRecord::Base
|
||||
def merge_extra_info(arg)
|
||||
h = extra_info || {}
|
||||
return h if arg.nil?
|
||||
|
||||
h.merge!(arg)
|
||||
write_attribute(:extra_info, h)
|
||||
end
|
||||
@@ -249,6 +250,7 @@ class Repository < ActiveRecord::Base
|
||||
# Finds and returns a revision with a number or the beginning of a hash
|
||||
def find_changeset_by_name(name)
|
||||
return nil if name.blank?
|
||||
|
||||
s = name.to_s
|
||||
if /^\d*$/.match?(s)
|
||||
changesets.find_by(:revision => s)
|
||||
|
||||
Reference in New Issue
Block a user