summaryrefslogtreecommitdiffstats
path: root/modules/indexer
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-05-10 12:57:06 +0800
committerGitHub <noreply@github.com>2023-05-10 04:57:06 +0000
commitc355728a6fdfb35bc53e283d4447da098f39e3a2 (patch)
tree3e13e4741deba4475efc42c9ad496b171e8f93d0 /modules/indexer
parent29637b03b2976580613550aef878cc31139c3abf (diff)
downloadgitea-c355728a6fdfb35bc53e283d4447da098f39e3a2.tar.gz
gitea-c355728a6fdfb35bc53e283d4447da098f39e3a2.zip
Remove unnecessary code (#24610)
As title, remove unnecessary code.
Diffstat (limited to 'modules/indexer')
-rw-r--r--modules/indexer/issues/indexer_test.go2
-rw-r--r--modules/indexer/stats/indexer_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go
index c7c7cea90f..a2d1794f4b 100644
--- a/modules/indexer/issues/indexer_test.go
+++ b/modules/indexer/issues/indexer_test.go
@@ -26,7 +26,7 @@ func TestMain(m *testing.M) {
func TestBleveSearchIssues(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
- setting.CfgProvider = setting.NewEmptyConfigProvider()
+ setting.CfgProvider, _ = setting.NewConfigProviderFromData("")
tmpIndexerDir := t.TempDir()
diff --git a/modules/indexer/stats/indexer_test.go b/modules/indexer/stats/indexer_test.go
index be9c6659f1..2d9844f8c9 100644
--- a/modules/indexer/stats/indexer_test.go
+++ b/modules/indexer/stats/indexer_test.go
@@ -28,7 +28,7 @@ func TestMain(m *testing.M) {
func TestRepoStatsIndex(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
- setting.CfgProvider = setting.NewEmptyConfigProvider()
+ setting.CfgProvider, _ = setting.NewConfigProviderFromData("")
setting.LoadQueueSettings()