From 89fb49c6d7ec68334f3f78dc80915895448300b2 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 5 Nov 2018 18:10:21 -0800 Subject: [PATCH] Fix lint errors in examples. --- examples/basic-client/client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/basic-client/client.go b/examples/basic-client/client.go index 4ea4d793..db6092bf 100644 --- a/examples/basic-client/client.go +++ b/examples/basic-client/client.go @@ -105,6 +105,9 @@ func main() { ctxClient, cancelClient := context.WithCancel(context.Background()) defer cancelClient() tlsConfig, err = client.GetClientTLSConfig(ctxClient, sign, pk) + if err != nil { + panic(err) + } // An http.Client will need to create a transport first _ = &http.Client{ Transport: &http.Transport{ @@ -127,6 +130,9 @@ func main() { ctxTransport, cancelTransport := context.WithCancel(context.Background()) defer cancelTransport() tr, err = client.Transport(ctxTransport, sign, pk) + if err != nil { + panic(err) + } // And http.Client will use the transport like _ = &http.Client{ Transport: tr,