chore: removes unnecessary conditional (#2194)

Signed-off-by: chavacava <salvadorcavadini+github@gmail.com>
This commit is contained in:
chavacava
2023-10-04 18:06:12 +00:00
committed by GitHub
parent 21878784a8
commit 1067dc2ce9
+1 -5
View File
@@ -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)
}