mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-03 01:57:31 +08:00
builtin_test.cpp: split a long line, add braces
This commit is contained in:
parent
4aa069a8ff
commit
1634c0fa49
|
@ -668,10 +668,12 @@ static bool parse_number(const wcstring &arg, number_t *number, wcstring_list_t
|
||||||
} else {
|
} else {
|
||||||
// We could not parse a float or an int.
|
// We could not parse a float or an int.
|
||||||
// Check for special fish_wcsto* value or show standard EINVAL/ERANGE error.
|
// Check for special fish_wcsto* value or show standard EINVAL/ERANGE error.
|
||||||
if (errno == -1)
|
if (errno == -1) {
|
||||||
errors.push_back(format_string(_(L"Integer %lld in '%ls' followed by non-digit"), integral, argcs));
|
errors.push_back(format_string(_(L"Integer %lld in '%ls' followed by non-digit"),
|
||||||
else
|
integral, argcs));
|
||||||
|
} else {
|
||||||
errors.push_back(format_string(L"%s: '%ls'", strerror(errno), argcs));
|
errors.push_back(format_string(L"%s: '%ls'", strerror(errno), argcs));
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user