mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
lint: empty while statement
This commit is contained in:
parent
e35b91d38c
commit
5709c81fe0
2 changed files with 4 additions and 3 deletions
|
@ -607,8 +607,9 @@ wint_t input_readch(bool allow_commands) {
|
||||||
if (input_function_status) {
|
if (input_function_status) {
|
||||||
return input_readch();
|
return input_readch();
|
||||||
}
|
}
|
||||||
while ((c = input_common_readch(0)) && c >= R_MIN && c <= R_MAX) {
|
c = input_common_readch(0);
|
||||||
// do nothing
|
while (c >= R_MIN && c <= R_MAX) {
|
||||||
|
c = input_common_readch(0);
|
||||||
}
|
}
|
||||||
input_common_next_ch(c);
|
input_common_next_ch(c);
|
||||||
return input_readch();
|
return input_readch();
|
||||||
|
|
|
@ -2373,7 +2373,7 @@ static bool text_ends_in_comment(const wcstring &text) {
|
||||||
tokenizer_t tok(text.c_str(), TOK_ACCEPT_UNFINISHED | TOK_SHOW_COMMENTS | TOK_SQUASH_ERRORS);
|
tokenizer_t tok(text.c_str(), TOK_ACCEPT_UNFINISHED | TOK_SHOW_COMMENTS | TOK_SQUASH_ERRORS);
|
||||||
tok_t token;
|
tok_t token;
|
||||||
while (tok.next(&token)) {
|
while (tok.next(&token)) {
|
||||||
// pass
|
; // pass
|
||||||
}
|
}
|
||||||
return token.type == TOK_COMMENT;
|
return token.type == TOK_COMMENT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue