Skip to content

Commit 392a25b

Browse files
committed
remove impossible condition
1 parent 52c003a commit 392a25b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/indexer/code/indexer.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,6 @@ func Init() {
178178
}()
179179

180180
rIndexer = elasticsearch.NewIndexer(setting.Indexer.RepoConnStr, setting.Indexer.RepoIndexerName)
181-
if err != nil {
182-
cancel()
183-
(*globalIndexer.Load()).Close()
184-
close(waitChannel)
185-
log.Fatal("PID: %d Unable to create the elasticsearch Repository Indexer connstr: %s Error: %v", os.Getpid(), setting.Indexer.RepoConnStr, err)
186-
}
187181
existed, err = rIndexer.Init(ctx)
188182
if err != nil {
189183
cancel()

0 commit comments

Comments
 (0)