From 1c768e812191219fdff5562e6ba3dcd804f44926 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Fri, 2 Dec 2022 17:17:38 +0100 Subject: [PATCH] chore: stop linter from whining about no return (#6679) No functional change, just jumping through hoops due to tooling. "JSDoc @returns declaration present but return expression not available in function" --- core/variables.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/variables.ts b/core/variables.ts index b3a15584d..e50327347 100644 --- a/core/variables.ts +++ b/core/variables.ts @@ -222,7 +222,7 @@ export function generateUniqueNameFromOptions( } } if (!inUse) { - return potName; + break; } letterIndex++; @@ -233,6 +233,7 @@ export function generateUniqueNameFromOptions( } potName = letters.charAt(letterIndex) + suffix; } + return potName; } /**