forked from Ivasoft/traefik
prefer NoError/Error over Nil/NotNil
This commit is contained in:
@@ -193,7 +193,7 @@ func TestManager_BuildUDP(t *testing.T) {
|
||||
assert.EqualError(t, err, test.expectedError)
|
||||
require.Nil(t, handler)
|
||||
} else {
|
||||
assert.Nil(t, err)
|
||||
assert.NoError(t, err)
|
||||
require.NotNil(t, handler)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user