Skip to content

Commit

Permalink
tools,doc: fix linting errors
Browse files Browse the repository at this point in the history
Refs: #4741 (comment)
PR-URL: #5161
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
  • Loading branch information
Trott authored and Myles Borins committed Mar 2, 2016
1 parent 7acbe87 commit 7c1cd9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/doc/type-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const jsPrimitiveUrl = 'https://developer.mozilla.org/en-US/docs/Web/' +
'JavaScript/Data_structures';
const jsPrimitives = [
'Number', 'String', 'Boolean', 'Null', 'Symbol'
]
];
const jsGlobalTypes = [
'Error', 'Object', 'Function', 'Array', 'Uint8Array',
'Uint16Array', 'Uint32Array', 'Int8Array', 'Int16Array', 'Int32Array',
Expand All @@ -28,12 +28,12 @@ const typeMap = {
};

module.exports = {
toLink: function (typeInput) {
let typeLinks = [];
toLink: function(typeInput) {
const typeLinks = [];
typeInput = typeInput.replace('{', '').replace('}', '');
let typeTexts = typeInput.split('|');
const typeTexts = typeInput.split('|');

typeTexts.forEach(function (typeText) {
typeTexts.forEach(function(typeText) {
typeText = typeText.trim();
if (typeText) {
let typeUrl = null;
Expand All @@ -56,4 +56,4 @@ module.exports = {

return typeLinks.length ? typeLinks.join(' | ') : typeInput;
}
}
};

0 comments on commit 7c1cd9a

Please sign in to comment.