From b02b5e965c86cd2bcab8feb79f3a3ef5654002c4 Mon Sep 17 00:00:00 2001 From: Tokesh Date: Mon, 23 Dec 2024 22:21:20 +0500 Subject: [PATCH] hotfix code style in keepdescriptions Signed-off-by: Tokesh --- tools/src/prepare-for-vale/KeepDescriptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/src/prepare-for-vale/KeepDescriptions.ts b/tools/src/prepare-for-vale/KeepDescriptions.ts index 4982ee6b..b2d0d33f 100644 --- a/tools/src/prepare-for-vale/KeepDescriptions.ts +++ b/tools/src/prepare-for-vale/KeepDescriptions.ts @@ -41,9 +41,9 @@ export default class KeepDescriptions { if (line.match(/^[\s]+((description|x-deprecation-message): \|)/)) { inside_text = true } else if (line.match(/^[\s]+((description|x-deprecation-message):)[\s]+/)) { - var cleaned_line = this.prune(line, /(description|x-deprecation-message):/, ' ') - cleaned_line = this.remove_links(line) + let cleaned_line = this.prune(line, /(description|x-deprecation-message):/, ' ') cleaned_line = this.prune_vars(cleaned_line) + cleaned_line = this.remove_links(cleaned_line) fs.writeSync(writer, cleaned_line) } else if (inside_text && line.match(/^[\s]*[\w\\$]*:/)) { inside_text = false