From a9414f1c6e678fa3d1f19f7d96e972a09fcf86d1 Mon Sep 17 00:00:00 2001 From: Ioan Damian Date: Thu, 12 Sep 2024 08:58:44 +0200 Subject: [PATCH] Revert "Fix: errors reported by golangci-lint: S1009: should omit nil check; printf: non-constant format string" This reverts commit a517af28ce75f3774bc989d251d7aff349345159. --- internal/awx/resource_job_template_launch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/awx/resource_job_template_launch.go b/internal/awx/resource_job_template_launch.go index 5bd440ea..b0df6f6a 100644 --- a/internal/awx/resource_job_template_launch.go +++ b/internal/awx/resource_job_template_launch.go @@ -128,7 +128,7 @@ func resourceJobTemplateLaunchCreate(ctx context.Context, d *schema.ResourceData if d.Get("wait_for_completion").(bool) { err = jobTemplateLaunchWait(ctx, client.JobService, res, d.Timeout(schema.TimeoutCreate)) - if err != nil && len(err) > 0 { + if err != nil { return utils.Diagf( "JobTemplate execution failure", fmt.Sprintf("JobTemplateLaunch with ID %d and template ID %d, failed to complete %s", res.ID, d.Get("job_template_id").(int), err.Error()),