Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuuszzzzz committed Feb 14, 2024
1 parent 0590d43 commit a7dd51d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/libs/migrateOnyx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit a7dd51d

Please sign in to comment.