test(factory): remove needless nil check
This commit is contained in:
parent
1dbb01a1d1
commit
dabb29bd36
1 changed files with 2 additions and 4 deletions
|
|
@ -470,10 +470,8 @@ func Test_ioStreams_spinnerDisabled(t *testing.T) {
|
|||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if tt.env != nil {
|
||||
for k, v := range tt.env {
|
||||
t.Setenv(k, v)
|
||||
}
|
||||
for k, v := range tt.env {
|
||||
t.Setenv(k, v)
|
||||
}
|
||||
f := New("1")
|
||||
io := ioStreams(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue