Skip to content

Commit

Permalink
Remove unnecessary parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Mar 23, 2018
1 parent b42e9c7 commit 150b775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/forbid-component-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ module.exports = {
create: function(context) {
const configuration = context.options[0] || {};
const forbid = new Map((configuration.forbid || DEFAULTS).map(value => {
const propName = (typeof value === 'string') ? value : value.propName;
const whitelist = (typeof value === 'string') ? [] : (value.allowedFor || []);
const propName = typeof value === 'string' ? value : value.propName;
const whitelist = typeof value === 'string' ? [] : (value.allowedFor || []);
return [propName, whitelist];
}));

Expand Down

0 comments on commit 150b775

Please sign in to comment.