he-gong-sardine commented on code in PR #36545:
URL: https://github.com/apache/airflow/pull/36545#discussion_r1468866487


##########
airflow/providers/google/cloud/transfers/sftp_to_gcs.py:
##########
@@ -160,10 +160,8 @@ def execute(self, context: Context):
 
             for file in files:
                 destination_path = file.replace(base_path, 
self.destination_path, 1)
-                if self.use_stream:
-                    self._stream_single_object(sftp_hook, gcs_hook, file, 
destination_path)
-                else:
-                    self._copy_single_object(sftp_hook, gcs_hook, file, 
destination_path)
+                transfer_single_object = self._stream_single_object if 
self.use_stream else self.self._copy_single_object

Review Comment:
   thanks. fixed 



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to