Skip to content

Commit 46645a9

Browse files
committed
chore: fix missing newline at end of file in multiple remote sync files
1 parent b2aa978 commit 46645a9

28 files changed

Lines changed: 30 additions & 51 deletions

src/apps/main/remote-sync/create-remote-sync-error-handler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ describe('create-remote-sync-error-handler.test', () => {
9999
});
100100
expect(logger.error).toHaveBeenCalledTimes(1);
101101
});
102-
});
102+
});

src/apps/main/remote-sync/create-remote-sync-error-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ export function createRemoteSyncErrorHandler(): RemoteSyncErrorHandler {
4141
return {
4242
handleSyncError,
4343
};
44-
}
44+
}

src/apps/main/remote-sync/fetch-remote-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export async function fetchRemoteFiles({ limit, updatedAtCheckpoint }: Pops): Pr
2727
hasMore: data.hasMore,
2828
result: data.files.map(patchDriveFileResponseItem),
2929
};
30-
}
30+
}

src/apps/main/remote-sync/fetch-remote-folders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export async function fetchRemoteFolders({ limit, updatedAtCheckpoint }: Pops):
2727
hasMore: data.hasMore,
2828
result: data.folders.map(patchDriveFolderResponseItem),
2929
};
30-
}
30+
}

src/apps/main/remote-sync/get-last-updated-checkpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ export async function getLastUpdatedCheckpoint<TItem extends DatabaseItemWithUpd
2424
const updatedAt = new Date(result.updatedAt);
2525

2626
return rewind(updatedAt, rewindMilliseconds);
27-
}
27+
}

src/apps/main/remote-sync/get-remote-sync-error-detail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ export function getRemoteSyncErrorDetail({ error, syncItemType, itemName }: GetR
7878
cause: 'NO_REMOTE_CONNECTION',
7979
}),
8080
} satisfies RemoteSyncErrorDetail;
81-
}
81+
}

src/apps/main/remote-sync/handlers.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ async function loadHandlersModule() {
4444
function getEventBusHandler(eventBusOnMock: ReturnType<typeof partialSpyOn>, eventName: string) {
4545
const calls = eventBusOnMock.mock.calls as Array<[string, (...args: unknown[]) => unknown]>;
4646

47-
return calls.find(([name]) => name === eventName)?.[1] as
48-
| ((...args: unknown[]) => unknown)
49-
| undefined;
47+
return calls.find(([name]) => name === eventName)?.[1] as ((...args: unknown[]) => unknown) | undefined;
5048
}
5149

5250
describe('handlers.test', () => {
@@ -149,4 +147,4 @@ describe('handlers.test', () => {
149147
call(setInitialSyncStateMock).toBe('NOT_READY');
150148
calls(mocks.remoteSyncController.resetRemoteSync).toHaveLength(1);
151149
});
152-
});
150+
});

src/apps/main/remote-sync/patch-drive-file-response-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export function patchDriveFileResponseItem(payload: DriveFileResponseItem) {
1212
size: typeof payload.size === 'string' ? parseInt(payload.size) : payload.size,
1313
name: payload.name ?? undefined,
1414
} as RemoteSyncedFile;
15-
}
15+
}

src/apps/main/remote-sync/patch-drive-folder-response-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ export function patchDriveFolderResponseItem(payload: DriveFolderResponseItem) {
2525
status,
2626
name: payload.name ?? undefined,
2727
} as RemoteSyncedFolder;
28-
}
28+
}

src/apps/main/remote-sync/remote-sync-controller/change-status.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ describe('change-status.test', () => {
3030
// Then
3131
expect(logger.debug).not.toHaveBeenCalled();
3232
});
33-
});
33+
});

0 commit comments

Comments
 (0)