tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit f3b37ed170dcee9413ede4ae67aaa159f6cbf1de
parent 1a9db334d53b5380777ef3885c095e9668c1745a
Author: Beth Rennie <beth@brennie.ca>
Date:   Thu,  2 Oct 2025 19:03:29 +0000

Bug 1987174 - Skip migrateEnrollmentsToSql when there are no experiments in the store r=nimbus-reviewers,relud

Differential Revision: https://phabricator.services.mozilla.com/D266441

Diffstat:
Mtoolkit/components/nimbus/lib/Migrations.sys.mjs | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/toolkit/components/nimbus/lib/Migrations.sys.mjs b/toolkit/components/nimbus/lib/Migrations.sys.mjs @@ -124,7 +124,11 @@ async function migrateEnrollmentsToSql() { lazy.ExperimentAPI.manager.store._jsonFile.data ); - // Likewise, the set of all recipes is + // If there are no enrollments we can skip the rest of the migration. + if (enrollments.length === 0) { + return; + } + const { recipes } = await lazy.ExperimentAPI._rsLoader.getRecipesFromAllCollections({ trigger: "migration",