Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <pingsutw@apache.org>
  • Loading branch information
pingsutw committed Apr 14, 2023
1 parent 0d96689 commit c0677d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flytekit/core/data_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ def put_data(self, local_path: Union[str, os.PathLike], remote_path: str, is_mul
:param is_multipart:
"""
try:
if isinstance(local_path, os.PathLike):
local_path = str(local_path)
local_path = str(local_path)
with PerformanceTimer(f"Writing ({local_path} -> {remote_path})"):
self.put(cast(str, local_path), remote_path, recursive=is_multipart)
except Exception as ex:
Expand Down

0 comments on commit c0677d4

Please sign in to comment.