From b404b9392cac8e14314f757fbc72f7692df275bf Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Fri, 14 Dec 2018 12:43:18 -0800 Subject: [PATCH] builtin_test.cpp: split a long line, add braces --- src/builtin_test.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/builtin_test.cpp b/src/builtin_test.cpp index 07aa37356..cac1167b2 100644 --- a/src/builtin_test.cpp +++ b/src/builtin_test.cpp @@ -668,10 +668,12 @@ static bool parse_number(const wcstring &arg, number_t *number, wcstring_list_t } else { // We could not parse a float or an int. // Check for special fish_wcsto* value or show standard EINVAL/ERANGE error. - if (errno == -1) - errors.push_back(format_string(_(L"Integer %lld in '%ls' followed by non-digit"), integral, argcs)); - else + if (errno == -1) { + errors.push_back(format_string(_(L"Integer %lld in '%ls' followed by non-digit"), + integral, argcs)); + } else { errors.push_back(format_string(L"%s: '%ls'", strerror(errno), argcs)); + } return false; } }