mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 02:41:15 -03:00
[clang-tidy] Replace size comparisons with empty
Found with readability-container-size-empty Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
5ca80a61e3
commit
7f62e30731
@@ -920,7 +920,7 @@ void reader_data_t::exec_prompt() {
|
||||
(void)get_current_winsize();
|
||||
|
||||
// If we have any prompts, they must be run non-interactively.
|
||||
if (left_prompt.size() || right_prompt.size()) {
|
||||
if (!left_prompt.empty() || !right_prompt.empty()) {
|
||||
scoped_push<bool> noninteractive{&parser().libdata().is_interactive, false};
|
||||
|
||||
exec_mode_prompt();
|
||||
|
||||
Reference in New Issue
Block a user