Remove error check

- This error check was made redudant by 375fd15fbf

(cherry picked from commit 9862f28ac5)
This commit is contained in:
Gusted 2024-04-10 19:06:34 +02:00 committed by GitHub
parent 666432d15b
commit 711838a4df

View file

@ -178,12 +178,6 @@ func Init() {
}() }()
rIndexer = elasticsearch.NewIndexer(setting.Indexer.RepoConnStr, setting.Indexer.RepoIndexerName) rIndexer = elasticsearch.NewIndexer(setting.Indexer.RepoConnStr, setting.Indexer.RepoIndexerName)
if err != nil {
cancel()
(*globalIndexer.Load()).Close()
close(waitChannel)
log.Fatal("PID: %d Unable to create the elasticsearch Repository Indexer connstr: %s Error: %v", os.Getpid(), setting.Indexer.RepoConnStr, err)
}
existed, err = rIndexer.Init(ctx) existed, err = rIndexer.Init(ctx)
if err != nil { if err != nil {
cancel() cancel()