Skip to content

Commit 74cbf57

Browse files
committed
remove capitalized and punctuation ask by linter
1 parent 2f99d42 commit 74cbf57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

session.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (s *Session) init(config *configv3.Config, configUaa *configv3.Config, conf
176176
return fmt.Errorf("error when authenticate on cf: %s", err)
177177
}
178178
if accessToken == "" {
179-
return fmt.Errorf("a pair of username/password or a pair of client_id/client_secret muste be set.")
179+
return fmt.Errorf("a pair of username/password or a pair of client_id/client_secret muste be set")
180180
}
181181

182182
config.SetAccessToken(fmt.Sprintf("bearer %s", accessToken))
@@ -202,7 +202,7 @@ func (s *Session) init(config *configv3.Config, configUaa *configv3.Config, conf
202202
uaaClientSess.WrapConnection(uaaWrapper.NewRetryRequest(config.RequestRetryCount()))
203203
err = uaaClientSess.SetupResources(info.UAA(), info.Login())
204204
if err != nil {
205-
return fmt.Errorf("Error setup resource uaa: %s", err)
205+
return fmt.Errorf("error setup resource uaa: %s", err)
206206
}
207207

208208
var accessTokenSess string
@@ -222,10 +222,10 @@ func (s *Session) init(config *configv3.Config, configUaa *configv3.Config, conf
222222
}
223223

224224
if err != nil {
225-
return fmt.Errorf("Error when authenticate on uaa: %s", err)
225+
return fmt.Errorf("error when authenticate on uaa: %s", err)
226226
}
227227
if accessTokenSess == "" {
228-
return fmt.Errorf("a pair of pair of uaa_client_id/uaa_client_secret muste be set.")
228+
return fmt.Errorf("a pair of pair of uaa_client_id/uaa_client_secret muste be set")
229229
}
230230
configUaa.SetAccessToken(fmt.Sprintf("bearer %s", accessTokenSess))
231231
configUaa.SetRefreshToken(refreshTokenSess)

0 commit comments

Comments
 (0)