From da33b65d32c65a6d8040024ba60a6bb900ae2cfc Mon Sep 17 00:00:00 2001 From: vilmibm Date: Wed, 5 Aug 2020 12:02:51 -0500 Subject: [PATCH] remove vestigial httpclient struct member --- pkg/cmd/auth/login/login.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkg/cmd/auth/login/login.go b/pkg/cmd/auth/login/login.go index 60687dad8..72710f5d0 100644 --- a/pkg/cmd/auth/login/login.go +++ b/pkg/cmd/auth/login/login.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "io/ioutil" - "net/http" "os" "strings" @@ -21,9 +20,8 @@ import ( ) type LoginOptions struct { - HttpClient func() (*http.Client, error) - IO *iostreams.IOStreams - Config func() (config.Config, error) + IO *iostreams.IOStreams + Config func() (config.Config, error) Hostname string Token string @@ -32,9 +30,8 @@ type LoginOptions struct { func NewCmdLogin(f *cmdutil.Factory, runF func(*LoginOptions) error) *cobra.Command { opts := &LoginOptions{ - HttpClient: f.HttpClient, - IO: f.IOStreams, - Config: f.Config, + IO: f.IOStreams, + Config: f.Config, } cmd := &cobra.Command{