From 030212c156e161570a19a4061c1ad10557b926fa Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Wed, 19 May 2021 01:13:23 -0400 Subject: [PATCH] Remove unnecessarily error check --- storage/storage.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/storage/storage.go b/storage/storage.go index 09cf0061..3890b8fd 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -43,10 +43,7 @@ func Initialize(cfg *Config) error { } if cfg == nil || len(cfg.File) == 0 { log.Println("[storage][Initialize] Creating storage provider") - provider, err = memory.NewStore("") - if err != nil { - return err - } + provider, _ = memory.NewStore("") } else { ctx, cancelFunc = context.WithCancel(context.Background()) log.Printf("[storage][Initialize] Creating storage provider with file=%s", cfg.File)