prefer NoError/Error over Nil/NotNil

This commit is contained in:
Stephen Solka 2020-07-19 07:10:03 -04:00 committed by GitHub
parent 44a244b1cb
commit dcd0cda0c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -193,7 +193,7 @@ func TestManager_BuildTCP(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)
}
})