mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-18 12:01:16 -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
@@ -160,7 +160,7 @@ static void add_char_to_bind_command(wchar_t wc, std::vector<wchar_t> &bind_char
|
||||
}
|
||||
|
||||
static void output_bind_command(std::vector<wchar_t> &bind_chars) {
|
||||
if (bind_chars.size()) {
|
||||
if (!bind_chars.empty()) {
|
||||
std::fputws(L"bind ", stdout);
|
||||
for (size_t i = 0; i < bind_chars.size(); i++) {
|
||||
std::fputws(char_to_symbol(bind_chars[i], true), stdout);
|
||||
|
||||
Reference in New Issue
Block a user