mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Changing commit message to use Promise.race instead of bad comparison
This commit is contained in:
@@ -865,8 +865,7 @@ export class Repository implements Disposable {
|
||||
}
|
||||
|
||||
async getInputTemplate(): Promise<string> {
|
||||
const commitMessage = await this.repository.getMergeMessage() || await this.repository.getSquashMessage();
|
||||
|
||||
const commitMessage = await Promise.race([this.repository.getMergeMessage(), this.repository.getSquashMessage()]);
|
||||
if (commitMessage) {
|
||||
return commitMessage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user