Skip to content

Commit b59f1dc

Browse files
committed
Remove bad/unneeded none guard.
1 parent 5bcf87d commit b59f1dc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyathena/aio/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ async def _find_previous_query_id( # type: ignore[override]
220220
break
221221
if (
222222
execution.query == query
223-
and (self._schema_name is None or execution.database == self._schema_name)
224-
and (self._catalog_name is None or execution.catalog == self._catalog_name)
223+
and execution.database == self._schema_name
224+
and execution.catalog == self._catalog_name
225225
):
226226
query_id = execution.query_id
227227
break

pyathena/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def _find_previous_query_id(
640640
break
641641
if (
642642
execution.query == query
643-
and (self._schema_name is None or execution.database == self._schema_name)
644-
and (self._catalog_name is None or execution.catalog == self._catalog_name)
643+
and execution.database == self._schema_name
644+
and execution.catalog == self._catalog_name
645645
):
646646
query_id = execution.query_id
647647
break

0 commit comments

Comments
 (0)