Skip to content

Commit a30976f

Browse files
committed
Update: utils.
1 parent 2252f3b commit a30976f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rules/fixer-return.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Requirements
1010
// ------------------------------------------------------------------------------
1111

12-
// const utils = require('../utils');
13-
const astUtils = require('../ast-utils.js');
12+
const utils = require('../utils');
13+
1414
// ------------------------------------------------------------------------------
1515
// Rule Definition
1616
// ------------------------------------------------------------------------------
@@ -69,7 +69,7 @@ module.exports = {
6969
node.type === 'FunctionExpression' &&
7070
node.body.type === 'BlockStatement' &&
7171
// check if it is naming fix
72-
astUtils.getStaticPropertyName(parent) === 'fix',
72+
utils.getKeyName(parent) === 'fix',
7373
node,
7474
};
7575
},

0 commit comments

Comments
 (0)