search: inline toSearchResults helper
Created by: rvantonder
This inlines toSearchResults
in the very small doResults
function. The idea is that I wanted to remove the dependency of searchResolver
in this function. I can do that even better by removing the resolver on doResults
in a follow up PR.