Closed shinglyu closed 9 years ago
The two return in if...else... violates the DRY priciple
I use defaultQuery to avoid violating DRY incidentally, there might be a more graceful solution.
defaultQuery
LGTM for now. I'm planning to add a user setting to set a default query, so the code may change.
The two return in if...else... violates the DRY priciple