Skip to content

Commit

Permalink
chore: removes unnecessary conditional (#1539)
Browse files Browse the repository at this point in the history
Signed-off-by: chavacava <salvadorcavadini+github@gmail.com>
  • Loading branch information
chavacava authored Oct 4, 2023
1 parent 4531528 commit 548da9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/format/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 548da9e

Please sign in to comment.