1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 09:21:12 +00: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:
Toshi MARUYAMA 2020-09-17 15:48:50 +00:00
parent 8b49aeeb32
commit b267f7e08d

View File

@ -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)