Skip to content

Commit

Permalink
tweak else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Nov 30, 2024
1 parent 008e810 commit 9ee0721
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ func (fctx *frontingContext) configureWithHello(pool *x509.CertPool, providers m
}

var err error
fctx.fronted, err = newFronted(pool, providers, defaultProviderID, cacheFile, clientHelloID, func(f *fronted) {
if fctx.fronted, err = newFronted(pool, providers, defaultProviderID, cacheFile, clientHelloID, func(f *fronted) {
log.Debug("Setting fronted instance")
fctx.instance.Set(f)
}, fctx.connectingFronts)
if err != nil {
}, fctx.connectingFronts); err != nil {
return err
}
return nil
Expand Down

0 comments on commit 9ee0721

Please sign in to comment.