chore: removes unnecessary conditional (#1539)

Signed-off-by: chavacava <salvadorcavadini+github@gmail.com>
This commit is contained in:
chavacava 2023-10-04 20:08:34 +02:00 committed by GitHub
parent 4531528099
commit 548da9e7cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,11 +172,7 @@ func Test_newSBOMMultiWriter(t *testing.T) {
switch w := mw.writers[i].(type) { switch w := mw.writers[i].(type) {
case *scanResultStreamWriter: case *scanResultStreamWriter:
assert.Equal(t, string(w.format), e.format) assert.Equal(t, string(w.format), e.format)
if e.file != "" { assert.NotNil(t, w.out)
assert.NotNil(t, w.out)
} else {
assert.NotNil(t, w.out)
}
if e.file != "" { if e.file != "" {
assert.FileExists(t, tmp+e.file) assert.FileExists(t, tmp+e.file)
} }