mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-21 23:11:17 -03:00
[clang-tidy] Simplify boolean expressions
Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
4087b2ee15
commit
7d1cc992e5
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user