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-10 11:15:49 -0800 |
commit | 9f89832827ddf9fab6fa1ef35e2cd497d468a4a8 (patch) | |
tree | 23b2055fb9d2d91a6928e5a38212951e99fe78da /platform | |
parent | f8d5b2511caf9de9305206c5da489fc73265c93e (diff) | |
download | qtlocation-mapboxgl-9f89832827ddf9fab6fa1ef35e2cd497d468a4a8.tar.gz |
[ios, macos] Fixed inconsistent indentation
Diffstat (limited to 'platform')
-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': |