Skip to content

Commit

Permalink
🎨 changes broke down condition to one line
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush2k committed Aug 12, 2016
1 parent 0369c0f commit 92153e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/content-types/only.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const only = (type, configuration) => {
}

// check if repeatable but not an array
if (attr.hasOwnProperty('repeatable') &&
typeof attr.repeatable === 'object' &&
!Array.isArray(config[attr.id])) {
if (attr.hasOwnProperty('repeatable') && typeof attr.repeatable === 'object' && !Array.isArray(config[attr.id])) {
config[attr.id] = [config[attr.id]];
}

Expand Down

0 comments on commit 92153e4

Please sign in to comment.