mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-16 10:11:14 -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
@@ -407,7 +407,7 @@ void inputter_t::mapping_execute(const input_mapping_t &m, bool allow_commands)
|
||||
bool inputter_t::mapping_is_match(const input_mapping_t &m) {
|
||||
const wcstring &str = m.seq;
|
||||
|
||||
assert(str.size() > 0 && "zero-length input string passed to mapping_is_match!");
|
||||
assert(!str.empty() && "zero-length input string passed to mapping_is_match!");
|
||||
|
||||
bool timed = false;
|
||||
for (size_t i = 0; i < str.size(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user