mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-01-05 22:53:53 +02:00
Fixed golint: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
This commit is contained in:
parent
22e19893f5
commit
f03b4daf2f
@ -15,9 +15,8 @@ type ErrorResponse struct {
|
||||
func (r *ErrorResponse) Error() string {
|
||||
if r.Response == nil {
|
||||
return fmt.Sprintf("%v %+v", r.ErrorMessages, r.Errors)
|
||||
} else {
|
||||
return fmt.Sprintf("%v %v: %d %v %+v",
|
||||
r.Response.Request.Method, r.Response.Request.URL,
|
||||
r.Response.StatusCode, r.ErrorMessages, r.Errors)
|
||||
}
|
||||
return fmt.Sprintf("%v %v: %d %v %+v",
|
||||
r.Response.Request.Method, r.Response.Request.URL,
|
||||
r.Response.StatusCode, r.ErrorMessages, r.Errors)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user