summaryrefslogtreecommitdiffstats
path: root/modules/indexer/issues
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-23 20:31:16 +0800
committerGitHub <noreply@github.com>2019-12-23 20:31:16 +0800
commit89b4e0477b4e1b9e1cccd87b68fde4ea8a578e9c (patch)
tree46141746472fc33dfa8c262fa96176895bc9fba8 /modules/indexer/issues
parent2f9564f993ba02ba503d7088eb8cc70536b7a6df (diff)
downloadgitea-89b4e0477b4e1b9e1cccd87b68fde4ea8a578e9c.tar.gz
gitea-89b4e0477b4e1b9e1cccd87b68fde4ea8a578e9c.zip
Refactor code indexer (#9313)
* Refactor code indexer * fix test * fix test * refactor code indexer * fix import * improve code * fix typo * fix test and make code clean * fix lint
Diffstat (limited to 'modules/indexer/issues')
-rw-r--r--modules/indexer/issues/db.go2
-rw-r--r--modules/indexer/issues/indexer.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/indexer/issues/db.go b/modules/indexer/issues/db.go
index 7d4e389471..a758cfeaee 100644
--- a/modules/indexer/issues/db.go
+++ b/modules/indexer/issues/db.go
@@ -6,7 +6,7 @@ package issues
import "code.gitea.io/gitea/models"
-// DBIndexer implements Indexer inteface to use database's like search
+// DBIndexer implements Indexer interface to use database's like search
type DBIndexer struct {
}
diff --git a/modules/indexer/issues/indexer.go b/modules/indexer/issues/indexer.go
index 50b8d6d224..ebcd3f68dd 100644
--- a/modules/indexer/issues/indexer.go
+++ b/modules/indexer/issues/indexer.go
@@ -38,7 +38,7 @@ type SearchResult struct {
Hits []Match
}
-// Indexer defines an inteface to indexer issues contents
+// Indexer defines an interface to indexer issues contents
type Indexer interface {
Init() (bool, error)
Index(issue []*IndexerData) error