Skip to content

Commit

Permalink
Ignore error from memory provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jspc committed Dec 31, 2023
1 parent deb14d3 commit 0175b92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ func (vh *VirtualHost) Configure() (err error) {

vh.sm = session.New(cfg)

provider, err := memory.New(memory.Config{})
if err != nil {
return
}
// According to https://github.com/fasthttp/session/blob/v2.5.3/providers/memory/provider.go#L29
// there _are_ no errors that can be returned here because fuck me for
// expecting quality
provider, _ := memory.New(memory.Config{})

return vh.sm.SetProvider(provider)
}
Expand Down

0 comments on commit 0175b92

Please sign in to comment.