Skip to content

Commit

Permalink
solving linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
caridy committed Apr 22, 2014
1 parent 4cb7992 commit 6a5b75e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/cmds/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand All @@ -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 = {};
Expand Down

0 comments on commit 6a5b75e

Please sign in to comment.