Skip to content

Commit

Permalink
fix: lint issue (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 authored Apr 17, 2020
1 parent b776902 commit 98c544d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
'provide its credentials directly.')
self._transport = transport
elif client_options is None or (
client_options.api_endpoint == None
client_options.api_endpoint is None
and client_options.client_cert_source is None
):
# Don't trigger mTLS if we get an empty ClientOptions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test__get_default_mtls_endpoint():
sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com"
non_googleapi = "api.example.com"

assert {{ service.client_name }}._get_default_mtls_endpoint(None) == None
assert {{ service.client_name }}._get_default_mtls_endpoint(None) is None
assert {{ service.client_name }}._get_default_mtls_endpoint(api_endpoint) == api_mtls_endpoint
assert {{ service.client_name }}._get_default_mtls_endpoint(api_mtls_endpoint) == api_mtls_endpoint
assert {{ service.client_name }}._get_default_mtls_endpoint(sandbox_endpoint) == sandbox_mtls_endpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
'provide its credentials directly.')
self._transport = transport
elif client_options is None or (
client_options.api_endpoint == None
client_options.api_endpoint is None
and client_options.client_cert_source is None
):
# Don't trigger mTLS if we get an empty ClientOptions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test__get_default_mtls_endpoint():
sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com"
non_googleapi = "api.example.com"

assert {{ service.client_name }}._get_default_mtls_endpoint(None) == None
assert {{ service.client_name }}._get_default_mtls_endpoint(None) is None
assert {{ service.client_name }}._get_default_mtls_endpoint(api_endpoint) == api_mtls_endpoint
assert {{ service.client_name }}._get_default_mtls_endpoint(api_mtls_endpoint) == api_mtls_endpoint
assert {{ service.client_name }}._get_default_mtls_endpoint(sandbox_endpoint) == sandbox_mtls_endpoint
Expand Down

0 comments on commit 98c544d

Please sign in to comment.