fix: remove dupe code

This commit is contained in:
Barış Soner Uşaklı
2019-09-16 23:22:10 -04:00
parent ec3b5dd95a
commit 9b151b2316

View File

@@ -1,6 +1,5 @@
'use strict';
const async = require('async');
const winston = require('winston');
const _ = require('lodash');
const Benchpress = require('benchpressjs');
@@ -201,7 +200,6 @@ widgets.resetTemplate = async function (template) {
};
widgets.resetTemplates = async function (templates) {
async.eachSeries(templates, widgets.resetTemplate);
for (const template of templates) {
/* eslint-disable no-await-in-loop */
await widgets.resetTemplate(template);