Skip to content

Commit

Permalink
Update metadata-ingestion/src/datahub/ingestion/source/s3/source.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
treff7es and coderabbitai[bot] authored Aug 21, 2024
1 parent 12d6150 commit a07216e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metadata-ingestion/src/datahub/ingestion/source/s3/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ class Folder:
is_partition: bool = False

def partition_id_text(self) -> Optional[str]:
if self.partition_id:
return "/".join([f"{k}={v}" for k, v in self.partition_id])
return None
return "/".join([f"{k}={v}" for k, v in self.partition_id]) if self.partition_id else None


@dataclasses.dataclass
Expand Down

0 comments on commit a07216e

Please sign in to comment.