From fd369cffddfa31b738f0fb504755589499edba67 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 28 Nov 2022 20:49:53 +0200 Subject: [PATCH] Consistent returns --- lib/processors/jsdoc/lib/ui5/plugin.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/processors/jsdoc/lib/ui5/plugin.cjs b/lib/processors/jsdoc/lib/ui5/plugin.cjs index fc19d1ad6..b762e130f 100644 --- a/lib/processors/jsdoc/lib/ui5/plugin.cjs +++ b/lib/processors/jsdoc/lib/ui5/plugin.cjs @@ -801,7 +801,7 @@ function checkVarRenaming(variable) { * Builds the fully quantified name when there's a destructuring of a variable * * @param {Node} node - * @returns {Object} + * @returns {string} */ function resolveFullyQuantifiedName(node) { // The missing part is on the left side. The right side is clear. @@ -811,7 +811,7 @@ function resolveFullyQuantifiedName(node) { const currentScope = getEnclosingVariableScope(node); if (!currentScope) { - return null; + return ""; } while (leftMostName) {