Skip to content

Node.js based forum software built for the modern web

fix: remove dupe code

Barış Soner Uşaklı9b151b2316a5
diff --git a/src/widgets/index.js b/src/widgets/index.js
index 012b3f2bb0..87a285e483 100644
--- a/src/widgets/index.js
+++ b/src/widgets/index.js
@@ -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);