summaryrefslogtreecommitdiffstats
path: root/models/issue_indexer.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-01-17 22:23:22 +0800
committerGitHub <noreply@github.com>2019-01-17 22:23:22 +0800
commit82e08a3364195b515a005180c2bdc08e78aac208 (patch)
treef8ae9f914ab522224e57fcf94675a7f7dd39006e /models/issue_indexer.go
parent477a80f658a04fc477d800887c55654ac307ff45 (diff)
downloadgitea-82e08a3364195b515a005180c2bdc08e78aac208.tar.gz
gitea-82e08a3364195b515a005180c2bdc08e78aac208.zip
Refactor notification for indexer (#5111)
* notification for indexer * use NullNotifier as parent struct
Diffstat (limited to 'models/issue_indexer.go')
-rw-r--r--models/issue_indexer.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/models/issue_indexer.go b/models/issue_indexer.go
index b94ba5f2df..48c0b9f246 100644
--- a/models/issue_indexer.go
+++ b/models/issue_indexer.go
@@ -117,9 +117,7 @@ func updateNeededCols(cols []string) bool {
// UpdateIssueIndexerCols update an issue in the issue indexer, given changes
// to the specified columns
func UpdateIssueIndexerCols(issueID int64, cols ...string) {
- if updateNeededCols(cols) {
- UpdateIssueIndexer(issueID)
- }
+ updateNeededCols(cols)
}
// UpdateIssueIndexer add/update an issue to the issue indexer