diff --git a/js/filters/contactGroup_filter.js b/js/filters/contactGroup_filter.js index bb7b5287d..f9763369c 100644 --- a/js/filters/contactGroup_filter.js +++ b/js/filters/contactGroup_filter.js @@ -22,10 +22,6 @@ angular.module('contactsApp') } } } - if(filter.length === 0) { - return contacts; - } else { - return filter; - } + return filter.length === 0 ? contacts : filter; }; });