Skip to content

Commit d87122d

Browse files
committed
Using node default params
1 parent b4d371f commit d87122d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/tldr.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ exports.render = (file) => {
6464
}
6565
// Getting the shortindex first to populate the shortindex var
6666
index.getShortIndex(() => {
67-
renderContent(content, {});
67+
renderContent(content);
6868
});
6969
});
7070
};
@@ -123,9 +123,7 @@ function printPages(pages, singleColumn) {
123123
console.log('\n' + pages.join(delimiter));
124124
}
125125

126-
function printBestPage(command, options) {
127-
// TODO: replace with default parameter if Node v4 support dropped.
128-
options = options || {};
126+
function printBestPage(command, options={}) {
129127
/* eslint-disable */ // To allow not checking for err
130128
// Trying to get the page from cache first
131129
cache.getPage(command, (err, content) => {

0 commit comments

Comments
 (0)