From 0080802f5da9a79388a1887e93b551e0e5350442 Mon Sep 17 00:00:00 2001 From: Mantra Patel Date: Tue, 21 Jul 2026 10:18:22 +0530 Subject: [PATCH] chore: fix JavaScript lint errors (issue #13587) --- .../repl-txt/parse/lib/extract_signature.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/repl-txt/parse/lib/extract_signature.js b/lib/node_modules/@stdlib/_tools/repl-txt/parse/lib/extract_signature.js index d8ddc5384a4d..8f15daaa8187 100644 --- a/lib/node_modules/@stdlib/_tools/repl-txt/parse/lib/extract_signature.js +++ b/lib/node_modules/@stdlib/_tools/repl-txt/parse/lib/extract_signature.js @@ -48,14 +48,6 @@ function extractSignature( str ) { for ( i = 0; i < str.length; i++ ) { ch = str.charAt( i ); switch ( state ) { - default: - case 'name': - if ( ch === '(' ) { - state = 'params'; - } else { - name += ch; - } - break; case 'params': if ( ch === ')' ) { if ( param && param.name !== '' ) { @@ -89,9 +81,17 @@ function extractSignature( str ) { }; } } + break; + case 'name': + default: + if ( ch === '(' ) { + state = 'params'; + } else { + name += ch; + } + break; } } - return { 'name': name, 'parameters': params,