From 1937fc07aff0b8b630ae6923dd1aa2e1023c8fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Fri, 28 Feb 2020 15:23:28 +0100 Subject: [PATCH] lint: fix gosimple/S1002 errors --- cmd/osbuild-tests/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/osbuild-tests/main.go b/cmd/osbuild-tests/main.go index 8f2ef955b..6b1920aca 100644 --- a/cmd/osbuild-tests/main.go +++ b/cmd/osbuild-tests/main.go @@ -96,7 +96,7 @@ func startCompose(name, outputType string) uuid.UUID { if err != nil { log.Fatalf("Unexpected reply: " + err.Error()) } - if reply.Status != true { + if !reply.Status { log.Fatalf("Unexpected status %v", reply.Status) } @@ -123,7 +123,7 @@ func deleteCompose(id uuid.UUID) { if len(reply.IDs) != 1 { log.Fatalf("Unexpected number of UUIDs returned: %d", len(reply.IDs)) } - if reply.IDs[0].Status != true { + if !reply.IDs[0].Status { log.Fatalf("Unexpected status %v", reply.IDs[0].Status) } } @@ -174,7 +174,7 @@ func pushBlueprint(bp *blueprint.Blueprint) { if err != nil { log.Fatalf("Unexpected reply: " + err.Error()) } - if reply.Status != true { + if !reply.Status { log.Fatalf("Unexpected status %v", reply.Status) } } @@ -188,7 +188,7 @@ func deleteBlueprint(bp *blueprint.Blueprint) { if err != nil { log.Fatalf("Unexpected reply: " + err.Error()) } - if reply.Status != true { + if !reply.Status { log.Fatalf("Unexpected status %v", reply.Status) } }