Skip to content

Commit

Permalink
Update packages/eslint-plugin/src/rules/explicit-function-return-type.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Mar 18, 2024
1 parent 3dfe154 commit 68ebb69
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ export default createRule<Options, MessageIds>({
);
},
ReturnStatement(node): void {
const current = functionInfoStack[functionInfoStack.length - 1];
(current as FunctionInfo<FunctionNode> | undefined)?.returns.push(node);
functionInfoStack.at(-1)?.returns.push(node);
},
};
},
Expand Down

0 comments on commit 68ebb69

Please sign in to comment.