Closed marianrh closed 3 years ago
If NewRecognizer returns with an error and rec is nil, accessing rec.ptr later panics. Avoid this by returning early.
NewRecognizer
rec
rec.ptr
Oops, thanks! Not sure why I missed this PR earlier, sorry.
If
NewRecognizer
returns with an error andrec
is nil, accessingrec.ptr
later panics. Avoid this by returning early.