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

@ -1179,7 +1179,7 @@ func TestGetCertificates(t *testing.T) {
if test.errResult != "" {
assert.EqualError(t, err, test.errResult)
} else {
assert.Nil(t, err)
assert.NoError(t, err)
assert.Equal(t, test.result, tlsConfigs)
}
})