[clang-tidy] Simplify boolean expressions

Found with readability-simplify-boolean-expr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-11-25 16:51:28 -08:00
committed by ridiculousfish
parent 4087b2ee15
commit 7d1cc992e5
9 changed files with 9 additions and 19 deletions

View File

@@ -2240,9 +2240,7 @@ static bool selection_is_at_top() {
if (row != 0 && row != PAGER_SELECTION_NONE) return false;
size_t col = pager->get_selected_column(data->current_page_rendering);
if (col != 0 && col != PAGER_SELECTION_NONE) return false;
return true;
return !(col != 0 && col != PAGER_SELECTION_NONE);
}
static relaxed_atomic_t<uint64_t> run_count{0};