Skip to content

Commit

Permalink
Remove unnecessary error() within substring_number_from_name()
Browse files Browse the repository at this point in the history
This error path is more helpfully handled by all call sites.
  • Loading branch information
staticfloat committed Aug 4, 2020
1 parent b5b0973 commit 49a692d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion base/pcre.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 49a692d

Please sign in to comment.