mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-25 09:24:04 +01:00
Remove unnecessarily error check
This commit is contained in:
parent
63b0ac8b35
commit
030212c156
@ -43,10 +43,7 @@ func Initialize(cfg *Config) error {
|
|||||||
}
|
}
|
||||||
if cfg == nil || len(cfg.File) == 0 {
|
if cfg == nil || len(cfg.File) == 0 {
|
||||||
log.Println("[storage][Initialize] Creating storage provider")
|
log.Println("[storage][Initialize] Creating storage provider")
|
||||||
provider, err = memory.NewStore("")
|
provider, _ = memory.NewStore("")
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
ctx, cancelFunc = context.WithCancel(context.Background())
|
ctx, cancelFunc = context.WithCancel(context.Background())
|
||||||
log.Printf("[storage][Initialize] Creating storage provider with file=%s", cfg.File)
|
log.Printf("[storage][Initialize] Creating storage provider with file=%s", cfg.File)
|
||||||
|
Loading…
Reference in New Issue
Block a user