[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:
Rosen Penev
2019-11-18 16:56:46 -08:00
committed by ridiculousfish
parent 5ca80a61e3
commit 7f62e30731
10 changed files with 17 additions and 17 deletions

View File

@@ -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();