Skip to content

Commit 89fb49c

Browse files
committed
Fix lint errors in examples.
1 parent 6617c93 commit 89fb49c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/basic-client/client.go

+6
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ func main() {
105105
ctxClient, cancelClient := context.WithCancel(context.Background())
106106
defer cancelClient()
107107
tlsConfig, err = client.GetClientTLSConfig(ctxClient, sign, pk)
108+
if err != nil {
109+
panic(err)
110+
}
108111
// An http.Client will need to create a transport first
109112
_ = &http.Client{
110113
Transport: &http.Transport{
@@ -127,6 +130,9 @@ func main() {
127130
ctxTransport, cancelTransport := context.WithCancel(context.Background())
128131
defer cancelTransport()
129132
tr, err = client.Transport(ctxTransport, sign, pk)
133+
if err != nil {
134+
panic(err)
135+
}
130136
// And http.Client will use the transport like
131137
_ = &http.Client{
132138
Transport: tr,

0 commit comments

Comments
 (0)