Don't obfuscate assignment when we choose language

Instead of assigning this property in a method, let's make the method
return a value and assign it more visibly.
This commit is contained in:
Elena Tanasoiu
2023-04-11 09:31:40 +00:00
parent 95ed076047
commit 061f347ea0

View File

@@ -45,7 +45,7 @@ export class SkeletonQueryWizard {
public async execute() { public async execute() {
// show quick pick to choose language // show quick pick to choose language
await this.chooseLanguage(); this.language = await this.chooseLanguage();
if (!this.language) { if (!this.language) {
return; return;
} }
@@ -112,7 +112,7 @@ export class SkeletonQueryWizard {
maxStep: 1, maxStep: 1,
}); });
this.language = await askForLanguage(this.cliServer, false); return await askForLanguage(this.cliServer, false);
} }
private async createQlPack() { private async createQlPack() {