potiuk commented on code in PR #24353:
URL: https://github.com/apache/airflow/pull/24353#discussion_r895073478


##########
airflow/providers/google/cloud/operators/gcs.py:
##########
@@ -305,8 +305,10 @@ def __init__(
         self.delegate_to = delegate_to
         self.impersonation_chain = impersonation_chain
 
-        if not objects and not prefix:
-            raise ValueError("Either object or prefix should be set. Both are 
None")
+        if objects is None and prefix is None:

Review Comment:
   I think the current way is easier and more explicit.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to