diff --git a/elementary/operations/upload_source_freshness.py b/elementary/operations/upload_source_freshness.py index eb70f5674..df80deaf4 100644 --- a/elementary/operations/upload_source_freshness.py +++ b/elementary/operations/upload_source_freshness.py @@ -21,11 +21,10 @@ def run(self): "Path to dbt project is missing. Please run the command with `--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"