From 6a5b75e4bf1835a103bc473789aeb7198157a0ba Mon Sep 17 00:00:00 2001 From: Caridy Patino Date: Mon, 21 Apr 2014 20:40:28 -0400 Subject: [PATCH] solving linting issues --- lib/cmds/cdn.js | 2 +- lib/create.js | 2 +- lib/util.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cmds/cdn.js b/lib/cmds/cdn.js index c56a852..414dd37 100644 --- a/lib/cmds/cdn.js +++ b/lib/cmds/cdn.js @@ -277,7 +277,7 @@ mods = { }); }, init: function(options) { - var i, found = []; + var i, found = [], _module, mod; this.options = options; this.cmd = options.parsed.argv.remain[0]; if (this.cmd === 'pending') { diff --git a/lib/create.js b/lib/create.js index cdfaa9d..f8399ac 100644 --- a/lib/create.js +++ b/lib/create.js @@ -87,7 +87,7 @@ var createJSON = function(options, callback) { var replaceTitle = function(options, items, callback) { var tags = '[ "gallery" ]', - title = options.name; + title = options.name, author = config.get('username'); items.forEach(function(file) { diff --git a/lib/util.js b/lib/util.js index 59e5bc8..35cdc76 100644 --- a/lib/util.js +++ b/lib/util.js @@ -56,7 +56,7 @@ mods = { getDSTOffset: function() { var start = new Date(), year = start.getFullYear(), - jan = new Date(year, 0); // January 1 + jan = new Date(year, 0), // January 1 jul = new Date(year, 6); // July 1 // northern hemisphere test @@ -310,7 +310,7 @@ mods.tree = function(start, root, callback) { finder.on('end', function() { tree = mods.objectSort(tree); var str = treeify.asTree(tree, true), - out = ''; + out = '', rel = path.relative(path.join(root, '../'), start), len = rel.split(path.sep)[0].length, pad = function(str) { @@ -333,7 +333,7 @@ mods.tree = function(start, root, callback) { mods.objectSort = function(obj) { if (typeof obj === 'string') { - return str; + return obj; } var keys = Object.keys(obj).sort(), o = {};