Skip to content

Commit

Permalink
Remove lodash forEach usage for objects (#3406)
Browse files Browse the repository at this point in the history
  • Loading branch information
CupWithCoffee authored and Cameron Dawson committed Apr 6, 2018
1 parent 572c75d commit 501179c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/js/services/jobfilters.js
Expand Up @@ -468,7 +468,7 @@ treeherder.factory('thJobFilters', [
* actually setting it in the location bar
*/
function _stripFieldFilters(locationSearch) {
_.forEach(locationSearch, function (val, field) {
Object.keys(locationSearch).forEach((field) => {
if (_isFieldFilter(field)) {
delete locationSearch[field];
}
Expand All @@ -477,7 +477,7 @@ treeherder.factory('thJobFilters', [
}

function _stripClearableFieldFilters(locationSearch) {
_.forEach(locationSearch, function (val, field) {
Object.keys(locationSearch).forEach((field) => {
if (_isClearableFilter(field)) {
delete locationSearch[field];
}
Expand Down

0 comments on commit 501179c

Please sign in to comment.