Skip to content

Commit

Permalink
Update solution.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 30, 2024
1 parent f23183a commit 2b8e71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kyu_7/pointless_farmer/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2b8e71f

Please sign in to comment.