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 04bd440 commit f23183a
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 @@ -21,7 +21,7 @@ def buy_or_sell(pairs: list, harvested_fruit: str) -> list[Any] | str:

for pair in pairs:
# First item in pairs is for selling, second is for buying.
if pair[0] == currently_holding == pair[-1] or pair[-1] == currently_holding:
if pair[-1] == currently_holding:

Check notice on line 24 in kyu_7/pointless_farmer/solution.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/pointless_farmer/solution.py#L24

Unnecessary "elif" after "continue", remove the leading "el" from "elif" (no-else-continue)
results.append('sell')
currently_holding = pair[0]
continue
Expand Down

0 comments on commit f23183a

Please sign in to comment.