Skip to content
Permalink
Browse files

tools,doc: fix linting errors

Refs: #4741 (comment)
PR-URL: #5161
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information...
Trott authored and MylesBorins committed Feb 9, 2016
1 parent 73e0195 commit 01006392cf00ef211b6427e9f4c06153c78a586b
Showing with 6 additions and 6 deletions.
  1. +6 −6 tools/doc/type-parser.js
@@ -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',
@@ -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;
@@ -56,4 +56,4 @@ module.exports = {

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

0 comments on commit 0100639

Please sign in to comment.
You can’t perform that action at this time.