Skip to content

Commit b74465a

Browse files
authored
Fix not being able to get .NET latest templates (#4915)
* initial * remove space
1 parent 96d5710 commit b74465a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
354 KB
Binary file not shown.
Binary file not shown.

src/utils/requestUtils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export namespace requestUtils {
5151
const client: ServiceClient = await createGenericClient(context, undefined);
5252
const response: AzExtPipelineResponse = await client.sendRequest(request);
5353
const stream: NodeJS.ReadableStream = nonNullProp(response, 'readableStreamBody');
54-
await new Promise((resolve, reject): void => {
55-
stream.pipe(fse.createWriteStream(filePath).on('finish', () => resolve).on('error', reject));
54+
await new Promise<void>((resolve, reject): void => {
55+
stream.pipe(fse.createWriteStream(filePath).on('finish', () => resolve()).on('error', reject));
5656
});
5757
}
5858

@@ -76,7 +76,6 @@ export namespace requestUtils {
7676
* Converts property name like "function_app_id" to "functionAppId"
7777
*/
7878
function convertPropertyName(name: string): string {
79-
8079
while (true) {
8180
const match: RegExpMatchArray | null = /_([a-z])/g.exec(name);
8281
if (match) {

0 commit comments

Comments
 (0)