Remove unnecessarily error check

This commit is contained in:
TwinProduction 2021-05-19 01:13:23 -04:00
parent 63b0ac8b35
commit 030212c156

View File

@ -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)