Skip to content

Commit

Permalink
Merge pull request Azure#100 from mcardosos/golint
Browse files Browse the repository at this point in the history
Fixes golint errors
  • Loading branch information
mcardosos authored Nov 15, 2016
2 parents fcb9570 + 496cdf4 commit df829a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autorest/azure/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type ServicePrincipalNoSecret struct {
// SetAuthenticationValues is a method of the interface ServicePrincipalSecret
// It only returns an error for the ServicePrincipalNoSecret type
func (noSecret *ServicePrincipalNoSecret) SetAuthenticationValues(spt *ServicePrincipalToken, v *url.Values) error {
return fmt.Errorf("Manually created ServicePrincipalToken does not contain secret material to retrieve a new access token.")
return fmt.Errorf("Manually created ServicePrincipalToken does not contain secret material to retrieve a new access token")
}

// ServicePrincipalSecret is an interface that allows various secret mechanism to fill the form
Expand Down
2 changes: 1 addition & 1 deletion autorest/mocks/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewBodyClose(s string) *Body {
// Read reads into the passed byte slice and returns the bytes read.
func (body *Body) Read(b []byte) (n int, err error) {
if !body.IsOpen() {
return 0, fmt.Errorf("ERROR: Body has been closed\n")
return 0, fmt.Errorf("ERROR: Body has been closed")
}
if len(body.b) == 0 {
return 0, io.EOF
Expand Down

0 comments on commit df829a5

Please sign in to comment.