Skip to content

Commit

Permalink
fix: use await syntax to finish rmdir
Browse files Browse the repository at this point in the history
  • Loading branch information
leo6104 committed Feb 4, 2021
1 parent c13a255 commit 0ca6b06
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/esm/fileUtil.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/fileUtil.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/fileUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class FileUtil {
* Recursively deletes the contents of a directory.
*/
public static async deleteDataDirectory(path: string): Promise<void> {
return Filesystem.rmdir({directory: Directory.Data, path, recursive: true}).then(() => null);
await Filesystem.rmdir({directory: Directory.Data, path, recursive: true}).then(() => null);
}

/**
Expand Down

0 comments on commit 0ca6b06

Please sign in to comment.