From 08c8d727d2392d18286f9f88ad775ad98f09ab33 Mon Sep 17 00:00:00 2001 From: Sean Rees Date: Mon, 18 Jul 2016 19:00:06 +0100 Subject: [PATCH] oauth2: fix warning from go vet go vet reports the following warning: oauth2.go:298: golang.org/x/oauth2/internal.ErrorTransport \ composite literal uses unkeyed fields Change-Id: I576234fcaedb745702fdf8c3431e55128788079d Reviewed-on: https://go-review.googlesource.com/24991 Reviewed-by: Brad Fitzpatrick --- oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2.go b/oauth2.go index a682896..d54ee26 100644 --- a/oauth2.go +++ b/oauth2.go @@ -295,7 +295,7 @@ func NewClient(ctx context.Context, src TokenSource) *http.Client { if src == nil { c, err := internal.ContextClient(ctx) if err != nil { - return &http.Client{Transport: internal.ErrorTransport{err}} + return &http.Client{Transport: internal.ErrorTransport{Err: err}} } return c }