diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-01-05 18:33:14 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-01-09 13:37:59 -0800 |
commit | 1af80012f0e274df0f2b753a263003f11be86e41 (patch) | |
tree | c9ebb8349f1c5d8cbb889804bbe1786a54bb2c9e | |
parent | 512117963e3be2d2a62329ff5c23cd964d6c88f9 (diff) | |
download | qtlocation-mapboxgl-1af80012f0e274df0f2b753a263003f11be86e41.tar.gz |
[ios, macos] Fixed inconsistent indentation
-rw-r--r-- | platform/darwin/scripts/generate-style-code.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index eb5d12d948..ea3c26eaba 100644 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -358,19 +358,19 @@ global.describeValue = function (value, property, layerType) { case 'enum': let displayValue; if (Array.isArray(value)) { - let separator = (value.length === 2) ? ' ' : ', '; - displayValue = value.map((possibleValue, i) => { - let conjunction = ''; - if (value.length === 2 && i === 0) conjunction = 'either '; - if (i === value.length - 1) conjunction = 'or '; - let objCType = global.objCType(layerType, property.name); - return `${conjunction}\`${objCType}${camelize(possibleValue)}\``; - }).join(separator); + let separator = (value.length === 2) ? ' ' : ', '; + displayValue = value.map((possibleValue, i) => { + let conjunction = ''; + if (value.length === 2 && i === 0) conjunction = 'either '; + if (i === value.length - 1) conjunction = 'or '; + let objCType = global.objCType(layerType, property.name); + return `${conjunction}\`${objCType}${camelize(possibleValue)}\``; + }).join(separator); } else if (property['light-property']) { - displayValue = `\`${prefix}Light${camelize(property.name)}${camelize(value)}\``; + displayValue = `\`${prefix}Light${camelize(property.name)}${camelize(value)}\``; } else { - let objCType = global.objCType(layerType, property.name); - displayValue = `\`${objCType}${camelize(value)}\``; + let objCType = global.objCType(layerType, property.name); + displayValue = `\`${objCType}${camelize(value)}\``; } return `an \`NSValue\` object containing ${displayValue}`; case 'color': |