1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-08 08:31:31 +00:00

add empty line after guard clause to app/models/issue_relation.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20501 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-26 14:46:44 +00:00
parent 4a19d043c1
commit 6f621ff7a5

View File

@ -87,10 +87,9 @@ class IssueRelation < ActiveRecord::Base
if attrs.respond_to?(:to_unsafe_hash)
attrs = attrs.to_unsafe_hash
end
return unless attrs.is_a?(Hash)
attrs = attrs.deep_dup
attrs = attrs.deep_dup
if issue_id = attrs.delete('issue_to_id')
if issue_id.to_s.strip.match(/\A#?(\d+)\z/)
issue_id = $1.to_i