Skip to content

Commit 150b775

Browse files
committed
Remove unnecessary parentheses
1 parent b42e9c7 commit 150b775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rules/forbid-component-props.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ module.exports = {
5757
create: function(context) {
5858
const configuration = context.options[0] || {};
5959
const forbid = new Map((configuration.forbid || DEFAULTS).map(value => {
60-
const propName = (typeof value === 'string') ? value : value.propName;
61-
const whitelist = (typeof value === 'string') ? [] : (value.allowedFor || []);
60+
const propName = typeof value === 'string' ? value : value.propName;
61+
const whitelist = typeof value === 'string' ? [] : (value.allowedFor || []);
6262
return [propName, whitelist];
6363
}));
6464

0 commit comments

Comments
 (0)