elaye-canopy commented on code in PR #36545:
URL: https://github.com/apache/airflow/pull/36545#discussion_r1460688387
##########
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:
self.self._copy_single_object? Typo?
--
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]