8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d9f3f6 + 42e8b6e commit 3fcf1bdCopy full SHA for 3fcf1bd
google/api_core/bidi.py
@@ -93,10 +93,7 @@ def _is_active(self):
93
# property is set. So we have to check if self.call is set before
94
# seeing if it's active. We need to return True if self.call is None.
95
# See https://github.com/googleapis/python-api-core/issues/560.
96
- if self.call is not None and not self.call.is_active():
97
- return False
98
- else:
99
- return True
+ return self.call is None or self.call.is_active()
100
101
def __iter__(self):
102
if self._initial_request is not None:
0 commit comments