diff --git a/lib/build/TaskRunner.js b/lib/build/TaskRunner.js index c4782c6f7..24d84f0bf 100644 --- a/lib/build/TaskRunner.js +++ b/lib/build/TaskRunner.js @@ -438,13 +438,12 @@ class TaskRunner { * @private * @param {string} taskName Name of the task * @param {Function} taskFunction Function which executed the task - * @param {object} taskParams Base parameters for all tasks * @returns {Promise} Resolves when task has finished */ - async _executeTask(taskName, taskFunction, taskParams) { + async _executeTask(taskName, taskFunction) { this._log.startTask(taskName); this._taskStart = performance.now(); - await taskFunction(taskParams, this._log); + await taskFunction(this._log); if (this._log.isLevelEnabled("perf")) { this._log.perf(`Task ${taskName} finished in ${Math.round((performance.now() - this._taskStart))} ms`); }