From a7dd51d488b7efcaed1c4f23d5d3c3596d852a59 Mon Sep 17 00:00:00 2001 From: Mateusz Rajski <mateusz.rajski@swmansion.com> Date: Wed, 14 Feb 2024 12:22:32 +0100 Subject: [PATCH] Format code --- src/libs/migrateOnyx.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libs/migrateOnyx.ts b/src/libs/migrateOnyx.ts index 97e698790d81..1202275067a5 100644 --- a/src/libs/migrateOnyx.ts +++ b/src/libs/migrateOnyx.ts @@ -15,14 +15,12 @@ export default function (): Promise<void> { // Reduce all promises down to a single promise. All promises run in a linear fashion, waiting for the // previous promise to finish before moving onto the next one. /* eslint-disable arrow-body-style */ - migrationPromises.reduce( - (previousPromise, migrationPromise) => { + migrationPromises + .reduce((previousPromise, migrationPromise) => { return previousPromise.then(() => { return migrationPromise(); }); - }, - Promise.resolve(), - ) + }, Promise.resolve()) // Once all migrations are done, resolve the main promise .then(() => {