enable prefer const (#5113)
This commit is contained in:
@@ -4,7 +4,7 @@ export default function () {
|
||||
|
||||
visitor: {
|
||||
DoExpression(path) {
|
||||
let body = path.node.body.body;
|
||||
const body = path.node.body.body;
|
||||
if (body.length) {
|
||||
path.replaceWithMultiple(body);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user