turbaszek commented on a change in pull request #7802: Make airflow/providers
pylint compatible
URL: https://github.com/apache/airflow/pull/7802#discussion_r396081835
##########
File path: airflow/providers/apache/hive/hooks/hive.py
##########
@@ -575,10 +579,7 @@ def check_for_partition(self, schema, table, partition):
partitions = client.get_partitions_by_filter(
schema, table, partition, 1)
- if partitions:
- return True
- else:
- return False
+ return partitions
Review comment:
```suggestion
return bool(partitions)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services