From 3032abfdbe22d659c23d51467be5a83ebff7b88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Fri, 28 Feb 2020 15:31:27 +0100 Subject: [PATCH] lint: fix gosimple/S1028 errors --- cmd/osbuild-worker/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/osbuild-worker/main.go b/cmd/osbuild-worker/main.go index 3a61b86bb..ccb6d65ae 100644 --- a/cmd/osbuild-worker/main.go +++ b/cmd/osbuild-worker/main.go @@ -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{}