Skip to content

Commit 464ecac

Browse files
author
Joachim Seminck
committed
const to let
1 parent 4b8c7ff commit 464ecac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/Components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ function componentRule(rule, context) {
327327
}
328328

329329
const bodyNodes = (node.value ? node.value.body.body : node.body.body);
330-
const i = bodyNodes.length - 1;
331330

331+
let i = bodyNodes.length - 1;
332332
for (; i >= 0; i--) {
333333
if (bodyNodes[i].type === 'ReturnStatement') {
334334
return bodyNodes[i];

0 commit comments

Comments
 (0)