From 9ee0721dd6394b6bd0f0397ace5f4fbe993a11b4 Mon Sep 17 00:00:00 2001 From: Adam Fisk Date: Sat, 30 Nov 2024 12:27:53 -0700 Subject: [PATCH] tweak else statement --- context.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/context.go b/context.go index fd1b378..6a8ae6a 100644 --- a/context.go +++ b/context.go @@ -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