Skip to content

Commit aa38269

Browse files
committed
fix(SyncProcess): Minor fixes
Signed-off-by: Marcel Klehr <[email protected]>
1 parent 32ed78e commit aa38269

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/lib/strategies/Default.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ export default class SyncProcess {
904904
donePlan: PlanStage3<TOppositeLocation<L1>, TItemLocation, L1>,
905905
reorders: Diff<TOppositeLocation<L1>, TItemLocation, ReorderAction<TOppositeLocation<L1>, TItemLocation>>): Promise<void> {
906906
Logger.log('Executing ' + targetLocation + ' plan for ')
907+
907908
let createActions = planStage2.CREATE.getActions()
908909
while (createActions.length > 0) {
909910
Logger.log(targetLocation + ': executing CREATEs')
@@ -913,13 +914,13 @@ export default class SyncProcess {
913914
ACTION_CONCURRENCY
914915
)
915916
createActions = planStage2.CREATE.getActions()
916-
}
917917

918-
if (this.canceled) {
919-
throw new CancelledSyncError()
918+
if (this.canceled) {
919+
throw new CancelledSyncError()
920+
}
920921
}
921922

922-
Logger.log(targetLocation + ': executing CREATEs')
923+
Logger.log(targetLocation + ': executing UPDATEs')
923924

924925
await Parallel.each(
925926
planStage2.UPDATE.getActions(),

src/lib/strategies/Unidirectional.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ export default class UnidirectionalSyncProcess extends DefaultStrategy {
295295
ACTION_CONCURRENCY
296296
)
297297
createActions = planRevert.CREATE.getActions()
298-
}
299298

300-
if (this.canceled) {
301-
throw new CancelledSyncError()
299+
if (this.canceled) {
300+
throw new CancelledSyncError()
301+
}
302302
}
303303

304-
Logger.log(targetLocation + ': executing CREATEs')
304+
Logger.log(targetLocation + ': executing UPDATEs')
305305

306306
await Parallel.each(
307307
planRevert.UPDATE.getActions(),

0 commit comments

Comments
 (0)