Skip to content

Commit

Permalink
chore: Clean up unnecessary spread
Browse files Browse the repository at this point in the history
The customPrefs alias was introduced in mozilla#1039 as a direct alias,
but changed to a shallow copy in mozilla#2436 because the object was modified.
These changes have been dropped in mozilla#3136 but the swallow copy remained.

This patch completes the cleanup by reverting to a direct alias.
  • Loading branch information
Rob--W committed Aug 5, 2024
1 parent 244aeb3 commit ba23956
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 ba23956

Please sign in to comment.