From 1067dc2ce9304c8c5b094a6e1b4ad3beabb91746 Mon Sep 17 00:00:00 2001 From: chavacava Date: Wed, 4 Oct 2023 20:06:12 +0200 Subject: [PATCH] chore: removes unnecessary conditional (#2194) Signed-off-by: chavacava --- cmd/syft/cli/options/writer_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/syft/cli/options/writer_test.go b/cmd/syft/cli/options/writer_test.go index f71d2b9d3..dfdc60a39 100644 --- a/cmd/syft/cli/options/writer_test.go +++ b/cmd/syft/cli/options/writer_test.go @@ -183,11 +183,7 @@ func Test_newSBOMMultiWriter(t *testing.T) { switch w := mw.writers[i].(type) { case *sbomStreamWriter: assert.Equal(t, string(w.format.ID()), e.format) - if e.file != "" { - assert.NotNil(t, w.out) - } else { - assert.NotNil(t, w.out) - } + assert.NotNil(t, w.out) if e.file != "" { assert.FileExists(t, tmp+e.file) }