From 548da9e7cb723816aea0740ff5f56dcf3a5a074f Mon Sep 17 00:00:00 2001 From: chavacava Date: Wed, 4 Oct 2023 20:08:34 +0200 Subject: [PATCH] chore: removes unnecessary conditional (#1539) Signed-off-by: chavacava --- internal/format/writer_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/format/writer_test.go b/internal/format/writer_test.go index 54c3f2a76de..3d0c1af1f79 100644 --- a/internal/format/writer_test.go +++ b/internal/format/writer_test.go @@ -172,11 +172,7 @@ func Test_newSBOMMultiWriter(t *testing.T) { switch w := mw.writers[i].(type) { case *scanResultStreamWriter: assert.Equal(t, string(w.format), 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) }