mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
chore: removes unnecessary conditional (#1539)
Signed-off-by: chavacava <salvadorcavadini+github@gmail.com>
This commit is contained in:
parent
4531528099
commit
548da9e7cb
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue