Replace some '_.each' with 'Array.prototype.forEach'

This commit is contained in:
Hongarc 2018-12-01 08:05:27 +07:00
parent 489a4b9095
commit 0134bf9870
4 changed files with 50 additions and 56 deletions

View file

@ -431,7 +431,7 @@ var commandConfig = {
names = names.concat(generalArgs);
command.validateArgBounds(names, 1, Number.MAX_VALUE, '-d');
_.each(names, function(name) {
names.forEach(function(name) {
engine.validateAndDeleteBranch(name);
});
return;
@ -856,4 +856,3 @@ var instantCommands = [
exports.commandConfig = commandConfig;
exports.instantCommands = instantCommands;