1
0
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:
Andy Grunwald 2016-03-26 21:27:38 +01:00
parent 22e19893f5
commit f03b4daf2f

View File

@ -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)
}