Skip to content

Commit 921c52c

Browse files
authored
Add missing awaits
1 parent a807cd6 commit 921c52c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/gitpuller.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ export abstract class GitPuller {
103103
path: PathExt.dirname(directory)
104104
};
105105
// Create directory if it does not exist.
106-
await this._contents.get(directory, { content: false }).catch(() => {
107-
this._contents.newUntitled(options).then(async newDirectory => {
108-
await this._contents.rename(newDirectory.path, directory);
109-
});
106+
await this._contents.get(directory, { content: false }).catch(async () => {
107+
const newDirectory = await this._contents.newUntitled(options);
108+
await this._contents.rename(newDirectory.path, directory);
110109
});
111110
}
112111
}

0 commit comments

Comments
 (0)