read_unquoted_escape: remove dead loop condition

This was recently converted to a while-loop. However, we only
loop in a specific case when (by hitting "continue") so a
loop condition is not necessary.

No functional change.
This commit is contained in:
Johannes Altmanninger 2022-10-05 21:56:09 -05:00
parent e7a7a58030
commit 5868b3c380

View File

@ -1152,7 +1152,7 @@ maybe_t<size_t> read_unquoted_escape(const wchar_t *input, wcstring *result, boo
// For multibyte \X sequences.
std::string byte_buff;
while (!errored) {
while (true) {
const wchar_t c = input[in_pos++];
switch (c) {
// A null character after a backslash is an error.