We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a807cd6 commit 921c52cCopy full SHA for 921c52c
src/gitpuller.ts
@@ -103,10 +103,9 @@ export abstract class GitPuller {
103
path: PathExt.dirname(directory)
104
};
105
// 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
- });
+ await this._contents.get(directory, { content: false }).catch(async () => {
+ const newDirectory = await this._contents.newUntitled(options);
+ await this._contents.rename(newDirectory.path, directory);
110
});
111
}
112
0 commit comments