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) {
case *scanResultStreamWriter:
assert.Equal(t, string(w.format), e.format)
if e.file != "" {
assert.NotNil(t, w.out)
} else {
assert.NotNil(t, w.out)
}
if e.file != "" {
assert.FileExists(t, tmp+e.file)
}