From 2b8e71f85384f4f6b9fbfa28d21c681a0cf5e0d8 Mon Sep 17 00:00:00 2001 From: Egor Kostan <20955183+ikostan@users.noreply.github.com> Date: Mon, 30 Dec 2024 06:35:16 -0800 Subject: [PATCH] Update solution.py --- kyu_7/pointless_farmer/solution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kyu_7/pointless_farmer/solution.py b/kyu_7/pointless_farmer/solution.py index b0426698072..ae98bb74fd4 100644 --- a/kyu_7/pointless_farmer/solution.py +++ b/kyu_7/pointless_farmer/solution.py @@ -32,4 +32,4 @@ def buy_or_sell(pairs: list, harvested_fruit: str) -> list[Any] | str: return "ERROR" - return results if currently_holding == harvested_fruit else "ERROR" + return "ERROR" if currently_holding != harvested_fruit else results