From a2a169affeb57a42e27dd4893da0bdb52542dae9 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 9 Nov 2015 11:37:47 +0100 Subject: flowtop: Simplify toggling of help state No need to use if/else, just toogle it like any other bool. Signed-off-by: Tobias Klauser --- flowtop.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flowtop.c b/flowtop.c index 42f1a4b..41e80b7 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1257,11 +1257,7 @@ static void presenter(void) show_active_only = !show_active_only; break; case '?': - if (show_help) - show_help = false; - else - show_help = true; - + show_help = !show_help; wclear(screen); clear(); break; -- cgit v1.2.3-54-g00ecf