From d52bc7733c29c5351b38949528512c8d293dc939 Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Tue, 21 Apr 2020 23:19:12 +0800 Subject: [PATCH] 1. add word override 2. bug fixing --- README.md | 6 ++++++ src/nodeHelper.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5af9aa1..9174f46 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,9 @@ cli: rp: RP db: DB adls: Adls + dw: DW + ti: TI + MCAS: MCAS # workaround for modelerfour issue # https://github.com/Azure/autorest.modelerfour/issues/195 SubscriptionId: SubscriptionId @@ -161,6 +164,9 @@ cli: rp: RP db: DB adls: Adls + dw: DW + ti: TI + MCAS: MCAS # workaround for modelerfour issue SubscriptionId: SubscriptionId parameter: 'camel' diff --git a/src/nodeHelper.ts b/src/nodeHelper.ts index de598d9..96e0dc3 100644 --- a/src/nodeHelper.ts +++ b/src/nodeHelper.ts @@ -285,7 +285,7 @@ export class NodeHelper { if (isNullOrUndefined(defaultWhenNotExist)) return undefined; else - defaultWhenNotExist(); + return defaultWhenNotExist(); } if (isNullOrUndefined(node.extensions[propertyName])) { if (isNullOrUndefined(defaultWhenNotExist))