From ce66ee88796c3a1ed7b888b9d4672159778a4012 Mon Sep 17 00:00:00 2001 From: Noy Arie Date: Tue, 19 Sep 2023 11:53:36 +0300 Subject: [PATCH] remove falsy condition --- elementary/operations/upload_source_freshness.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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"