Format
This commit is contained in:
parent
10bde4bc3a
commit
d07fa32ba3
3 changed files with 6 additions and 6 deletions
|
|
@ -75,7 +75,7 @@ export class SafeFileSystemOperations implements FileSystemOperations {
|
|||
|
||||
public async exists(
|
||||
path: RelativePath,
|
||||
skipLock: boolean = false
|
||||
skipLock = false
|
||||
): Promise<boolean> {
|
||||
this.logger.debug(`Checking if file '${path}' exists`);
|
||||
if (skipLock) {
|
||||
|
|
@ -100,7 +100,7 @@ export class SafeFileSystemOperations implements FileSystemOperations {
|
|||
public async rename(
|
||||
oldPath: RelativePath,
|
||||
newPath: RelativePath,
|
||||
skipLock: boolean = false
|
||||
skipLock = false
|
||||
): Promise<void> {
|
||||
this.logger.debug(`Renaming file '${oldPath}' to '${newPath}'`);
|
||||
return this.safeOperation(
|
||||
|
|
@ -122,11 +122,11 @@ export class SafeFileSystemOperations implements FileSystemOperations {
|
|||
return this.locks.tryLock(path);
|
||||
}
|
||||
|
||||
public waitForLock(path: RelativePath) {
|
||||
public async waitForLock(path: RelativePath): Promise<void> {
|
||||
return this.locks.waitForLock(path);
|
||||
}
|
||||
|
||||
public unlock(path: RelativePath) {
|
||||
public unlock(path: RelativePath): void {
|
||||
this.locks.unlock(path);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ export class Syncer {
|
|||
|
||||
public async waitUntilFinished(): Promise<void> {
|
||||
await this.runningScheduleSyncForOfflineChanges;
|
||||
return this.syncQueue.onEmpty();
|
||||
await this.syncQueue.onEmpty();
|
||||
}
|
||||
|
||||
public async syncRemotelyUpdatedFile(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue