mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: remove dupe code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user