Skip to content

Commit

Permalink
chore: Clean up unnecessary spread (#3218)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Rob--W committed Sep 20, 2024
1 parent 86b76fd commit ba20bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba20bf2

Please # to comment.