You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/_tools/eslint/rules/no-unnecessary-nested-functions/lib/main.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,7 @@ function referencesOuterVariables( node, context ) {
149
149
* @private
150
150
* @param {string} varName - variable name
151
151
* @param {Object} startScope - scope to start searching from
152
-
* @returns {Object|null} scope where variable is defined or null if not found
152
+
* @returns {(Object|null)} scope where variable is defined or null if not found
153
153
*/
154
154
functionfindVariableScope(varName,startScope){
155
155
varcurrentScope;
@@ -177,7 +177,7 @@ function findVariableScope( varName, startScope ) {
177
177
* @private
178
178
* @param {ASTNode} node - function declaration node
179
179
* @param {Object} context - ESLint context
180
-
* @returns {Object|null} highest scope object or null if cannot be moved
180
+
* @returns {(Object|null)} highest scope object or null if cannot be moved
181
181
*/
182
182
functiongetHighestPossibleScope(node,context){
183
183
varparentFuncScope;
@@ -200,8 +200,7 @@ function getHighestPossibleScope( node, context ) {
200
200
highestScope=highestScope.upper;
201
201
}
202
202
203
-
// If we're already at module level, we still want to check if we can move there
204
-
// (This handles the case where the function is directly nested in a top-level function)
203
+
// If we're already at module level, we still want to check if we can move there (note: this handles the case where the function is directly nested in a top-level function)...
205
204
206
205
// Check all references in this function's scope...
0 commit comments