From 92153e44eba0550b2f05fa81e66ff7a673483248 Mon Sep 17 00:00:00 2001 From: Ayush Gupta Date: Fri, 12 Aug 2016 16:53:54 -0400 Subject: [PATCH] :art: changes broke down condition to one line --- lib/content-types/only.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/content-types/only.js b/lib/content-types/only.js index 53c07b6..153fb34 100644 --- a/lib/content-types/only.js +++ b/lib/content-types/only.js @@ -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]]; }