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