search: simplify result type computation control flow
Created by: rvantonder
Stacked on https://github.com/sourcegraph/sourcegraph/pull/32595.
Just a pass to simplify control flow by a human instead of compiler :-)
Test plan
Semantics-preserving
Created by: rvantonder
Stacked on https://github.com/sourcegraph/sourcegraph/pull/32595.
Just a pass to simplify control flow by a human instead of compiler :-)
Semantics-preserving