PR commit for adding support for degree 1 curves

Get rid of that variable. Return directly when a hit is found.