msw 2.4.9 → 2.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,16 +147,15 @@ var getWorkerInstance = async (url, options = {}, findWorker) => {
147
147
  }
148
148
  const [existingRegistration] = mockRegistrations;
149
149
  if (existingRegistration) {
150
- return existingRegistration.update().then(() => {
151
- return [
152
- getWorkerByRegistration(
153
- existingRegistration,
154
- absoluteWorkerUrl,
155
- findWorker
156
- ),
157
- existingRegistration
158
- ];
159
- });
150
+ existingRegistration.update();
151
+ return [
152
+ getWorkerByRegistration(
153
+ existingRegistration,
154
+ absoluteWorkerUrl,
155
+ findWorker
156
+ ),
157
+ existingRegistration
158
+ ];
160
159
  }
161
160
  const registrationResult = await until(
162
161
  async () => {