Updates code style for search service

This commit is contained in:
Seyi Adebajo 2017-03-24 21:34:38 -07:00 committed by Mars Lan
parent 295f5f7043
commit 59f811fc87

View File

@ -17,7 +17,7 @@ export default Service.extend({
* @returns {void|Transition|EmberStates.Transition} * @returns {void|Transition|EmberStates.Transition}
*/ */
showSearchResults(args) { showSearchResults(args) {
let {keyword} = args; let { keyword } = args;
// Transition to search route only if value is not null or void // Transition to search route only if value is not null or void
if (!isBlank(keyword)) { if (!isBlank(keyword)) {
@ -26,7 +26,7 @@ export default Service.extend({
keyword = encode(keyword); keyword = encode(keyword);
return applicationRoute.transitionTo('search', { return applicationRoute.transitionTo('search', {
queryParams: {keyword} queryParams: { keyword }
}); });
} }
} }