search: clean up nits around description match ranges
Created by: tbliu98
Following up on comments in https://github.com/sourcegraph/sourcegraph/pull/39530
Removing an unneeded test and a couple unneeded if
checks. Commit messages have explanations.
Test plan
Tests pass