Skip to content

Commit

Permalink
remove or ""
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardLi-coder committed Sep 12, 2024
1 parent 43c2f8d commit 3cc64c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/datachain/client/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def info_to_file(self, v: dict[str, Any], path: str) -> File:
source=self.uri,
path=path,
size=v["size"],
version=ClientS3.clean_s3_version(v.get("VersionId", "")) or "",
version=ClientS3.clean_s3_version(v.get("VersionId", "")),
etag=v.get("ETag", "").strip('"'),
is_latest=v.get("IsLatest", True),
last_modified=v.get("LastModified", ""),
Expand Down
2 changes: 1 addition & 1 deletion src/datachain/lib/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def resolve(self) -> "Self":
source=self.source,
size=converted_info.size,
etag=converted_info.etag,
version=converted_info.version or "",
version=converted_info.version,
is_latest=converted_info.is_latest,
last_modified=converted_info.last_modified,
location=self.location,
Expand Down

0 comments on commit 3cc64c6

Please sign in to comment.