Skip to content

Commit

Permalink
Refactor rules/utils/is-value-not-usable.js
Browse files Browse the repository at this point in the history
Co-Authored-By: fisker Cheung <lionkay@gmail.com>
  • Loading branch information
brettz9 and fisker committed Feb 1, 2020
1 parent 2a1efcd commit a5d5d53
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rules/utils/is-value-not-usable.js
@@ -1,7 +1,3 @@
'use strict';

module.exports = function (node) {
const {parent} = node;

return !parent || parent.type === 'ExpressionStatement';
};
module.exports = ({parent}) => !parent || parent.type === 'ExpressionStatement';

0 comments on commit a5d5d53

Please sign in to comment.