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

git-svn-id: http://svn.redmine.org/redmine/trunk@19928 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-07-21 13:40:44 +00:00
parent e681a04e1c
commit 87d7949892

View File

@@ -117,6 +117,7 @@ class Changeset < ActiveRecord::Base
def scan_comment_for_issue_ids
return if comments.blank?
# keywords used to reference issues
ref_keywords = Setting.commit_ref_keywords.downcase.split(",").collect(&:strip)
ref_keywords_any = ref_keywords.delete('*')
@@ -197,6 +198,7 @@ class Changeset < ActiveRecord::Base
# Finds an issue that can be referenced by the commit message
def find_referenced_issue_by_id(id)
return nil if id.blank?
issue = Issue.find_by_id(id.to_i)
if Setting.commit_cross_project_ref?
# all issues can be referenced/fixed