mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: remove dupe code
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const async = require('async');
|
|
||||||
const winston = require('winston');
|
const winston = require('winston');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const Benchpress = require('benchpressjs');
|
const Benchpress = require('benchpressjs');
|
||||||
@@ -201,7 +200,6 @@ widgets.resetTemplate = async function (template) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
widgets.resetTemplates = async function (templates) {
|
widgets.resetTemplates = async function (templates) {
|
||||||
async.eachSeries(templates, widgets.resetTemplate);
|
|
||||||
for (const template of templates) {
|
for (const template of templates) {
|
||||||
/* eslint-disable no-await-in-loop */
|
/* eslint-disable no-await-in-loop */
|
||||||
await widgets.resetTemplate(template);
|
await widgets.resetTemplate(template);
|
||||||
|
|||||||
Reference in New Issue
Block a user