uranusjr commented on code in PR #34320:
URL: https://github.com/apache/airflow/pull/34320#discussion_r1325435609


##########
airflow/providers/amazon/aws/hooks/s3.py:
##########
@@ -576,8 +578,7 @@ async def get_files_async(
             response = paginator.paginate(Bucket=bucket, Prefix=prefix, 
Delimiter=delimiter)
             async for page in response:
                 if "Contents" in page:
-                    _temp = [k for k in page["Contents"] if 
isinstance(k.get("Size", None), (int, float))]
-                    keys = keys + _temp
+                    keys.extend(k for k in page["Contents"] if 
isinstance(k.get("Size", None), (int, float)))

Review Comment:
   ```suggestion
                       keys.extend(k for k in page["Contents"] if 
isinstance(k.get("Size"), (int, float)))
   ```



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