diff options
author | Naelson Douglas C. Oliveira <naelson17@gmail.com> | 2021-12-22 15:55:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 19:55:10 +0100 |
commit | 757c1ab75e4c56bbce16ada31971766cf2e6db50 (patch) | |
tree | 0c4dd12d49d01ffb35db49481b430fc6e2cb64d7 | |
parent | c4013f7603397c0da3d2c35d8bb96e6232bdbb77 (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-x | bpytop.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |