From ba20bf2ee70547990ffd597f7683cdde4a436d2d Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Fri, 20 Sep 2024 09:34:50 +0200 Subject: [PATCH] chore: Clean up unnecessary spread (#3218) The customPrefs alias was introduced in #1039 as a direct alias, but changed to a shallow copy in #2436 because the object was modified. These changes have been dropped in #3136 but the swallow copy remained. This patch completes the cleanup by reverting to a direct alias. --- src/cmd/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/run.js b/src/cmd/run.js index e15e58615b..c06c21fc77 100644 --- a/src/cmd/run.js +++ b/src/cmd/run.js @@ -82,7 +82,7 @@ export default async function run( // Create an alias for --pref since it has been transformed into an // object containing one or more preferences. - const customPrefs = { ...pref }; + const customPrefs = pref; const manifestData = await getValidatedManifest(sourceDir); const profileDir = firefoxProfile || chromiumProfile;