mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user