Skip to content

Commit 168d91d

Browse files
authored
Merge pull request #13 from cloudfoundry-community/fix-wrongly-error-handling
fix wrong error handling
2 parents 1b352b2 + ec71d05 commit 168d91d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

session.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,7 @@ func (s *Session) init(config *configv3.Config, configUaa *configv3.Config, conf
146146
// create an uaa client with cf_username/cf_password or client_id/client secret
147147
// to use it for authenticate requests
148148
uaaClient := uaa.NewClient(config)
149-
if _, err := uaaClient.GetAPIVersion(); err != nil {
150-
return fmt.Errorf("unable to get API version: %s", err)
151-
}
152-
149+
_, _ = uaaClient.GetAPIVersion()
153150
uaaAuthWrapper := uaaWrapper.NewUAAAuthentication(nil, configUaa)
154151
uaaClient.WrapConnection(uaaAuthWrapper)
155152
uaaClient.WrapConnection(uaaWrapper.NewRetryRequest(config.RequestRetryCount()))

0 commit comments

Comments
 (0)