test: Remove new grep warning

With newer versions of grep, you now see:

	grep: warning: stray \ before "

This is because we had an erroneous backslash escaping a quote. Remove
it.
This commit is contained in:
James Shubin
2023-12-03 17:59:22 -05:00
parent b7d8a769db
commit c3f34db81e

View File

@@ -60,10 +60,10 @@ function naked-error() {
# catch errors that start with a capital # catch errors that start with a capital
function lowercase-errors() { function lowercase-errors() {
if grep -E 'errors\.New\(\"[A-Z]' "$1"; then if grep -E 'errors\.New\("[A-Z]' "$1"; then
return 1 return 1
fi fi
if grep -E 't\.Errorf\(\"[A-Z]' "$1"; then # t.Errorf or fmt.Errorf if grep -E 't\.Errorf\("[A-Z]' "$1"; then # t.Errorf or fmt.Errorf
return 1 return 1
fi fi
# TODO: add errwrap.Wrap* related matching # TODO: add errwrap.Wrap* related matching