From 9862f28ac5a11c6354fdd830644647939ee742e2 Mon Sep 17 00:00:00 2001 From: Gusted Date: Wed, 10 Apr 2024 19:06:34 +0200 Subject: [PATCH] Remove error check - This error check was made redudant by 375fd15fbfc29787323840688bacdfa0a9e9e414 --- modules/indexer/code/indexer.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/indexer/code/indexer.go b/modules/indexer/code/indexer.go index ebebf6ba8..c1ab26569 100644 --- a/modules/indexer/code/indexer.go +++ b/modules/indexer/code/indexer.go @@ -178,12 +178,6 @@ func Init() { }() 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) if err != nil { cancel()