fix: remove dupe code

v1.18.x
Barış Soner Uşaklı 5 years ago
parent ec3b5dd95a
commit 9b151b2316

@ -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);

Loading…
Cancel
Save