lint: fix gosimple/S1028 errors

This commit is contained in:
Ondřej Budai 2020-02-28 15:31:27 +01:00 committed by Tom Gundersen
parent b7875db046
commit 3032abfdbe

View file

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