Skip to content

Commit

Permalink
remove falsy condition
Browse files Browse the repository at this point in the history
  • Loading branch information
NoyaArie committed Sep 19, 2023
1 parent b10ff1e commit ce66ee8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions elementary/operations/upload_source_freshness.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ def run(self):
"Path to dbt project is missing. Please run the command with `--project-dir <DBT_PROJECT_DIR>`."
)
sources_file_contents = self.get_sources_file_contents()
if sources_file_contents:
results = sources_file_contents["results"]
metadata = sources_file_contents["metadata"]
self.upload_results(results, metadata)
click.echo("Uploaded source freshness results successfully.")
results = sources_file_contents["results"]
metadata = sources_file_contents["metadata"]
self.upload_results(results, metadata)
click.echo("Uploaded source freshness results successfully.")

def get_sources_file_contents(self) -> dict:
source_path = self.get_target_path() / "sources.json"
Expand Down

0 comments on commit ce66ee8

Please sign in to comment.