lint: fix gosimple/S1028 errors
This commit is contained in:
parent
b7875db046
commit
3032abfdbe
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ func (c *ComposerClient) AddJob() (*jobqueue.Job, error) {
|
|||
if response.StatusCode != http.StatusCreated {
|
||||
rawR, _ := ioutil.ReadAll(response.Body)
|
||||
r := string(rawR)
|
||||
return nil, errors.New(fmt.Sprintf("couldn't create job, got %d: %s", response.StatusCode, r))
|
||||
return nil, fmt.Errorf("couldn't create job, got %d: %s", response.StatusCode, r)
|
||||
}
|
||||
|
||||
job := &jobqueue.Job{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue