mirror of https://github.com/aristocratos/bpytop
Removed a simple consider-using-in pitfall case (#358)
* Removed a simple pitfall case where the code was incurring into the Pylint error R1714 consider-using-in https://github.com/vald-phoenix/pylint-errors/blob/master/plerr/errors/refactoring/R1714.md * removed a typopull/375/head
parent
c4013f7603
commit
757c1ab75e
|
@ -4827,7 +4827,7 @@ class Menu:
|
|||
elif key in ["escape", "o", "M", "f2"]:
|
||||
cls.close = True
|
||||
break
|
||||
elif key == "tab" or (key == "down" and selected_int == len(option_items) - 1 and (page == pages or pages == 0)):
|
||||
elif key == "tab" or (key == "down" and selected_int == len(option_items) - 1 and page in [0, pages]):
|
||||
if cat_int == len(categories) - 1:
|
||||
cat_int = 0
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue