summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaelson Douglas C. Oliveira <naelson17@gmail.com>2021-12-22 15:55:10 -0300
committerGitHub <noreply@github.com>2021-12-22 19:55:10 +0100
commit757c1ab75e4c56bbce16ada31971766cf2e6db50 (patch)
tree0c4dd12d49d01ffb35db49481b430fc6e2cb64d7
parentc4013f7603397c0da3d2c35d8bb96e6232bdbb77 (diff)
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 typo
-rwxr-xr-xbpytop.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpytop.py b/bpytop.py
index 3c66015..61eef86 100755
--- a/bpytop.py
+++ b/bpytop.py
@@ -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: