From ca72721138677edf00d1dad139a2c2d598fdf8fc Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Mon, 14 Oct 2024 09:42:52 +0200 Subject: [PATCH] [INTERNAL] TaskRunner: Remove unused parameter This was noticed during the TypeScript PoC. No impact on actual runtime behavior. --- lib/build/TaskRunner.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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`); }