From 49a692d8d097ff27e16aea35cf90f7a47b09a6ff Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Tue, 4 Aug 2020 11:52:37 -0700 Subject: [PATCH] Remove unnecessary `error()` within `substring_number_from_name()` This error path is more helpfully handled by all call sites. --- base/pcre.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/base/pcre.jl b/base/pcre.jl index cc539d859b70d..1508eb90b1993 100644 --- a/base/pcre.jl +++ b/base/pcre.jl @@ -194,7 +194,6 @@ end function substring_number_from_name(re, name) n = ccall((:pcre2_substring_number_from_name_8, PCRE_LIB), Cint, (Ptr{Cvoid}, Cstring), re, name) - n < 0 && error("PCRE error: $(err_message(n))") return Int(n) end