Skip to content

Commit

Permalink
cleaned up spacing and moved vars around
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Jan 12, 2015
1 parent d47dbe4 commit 2da23db
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/index.js
Expand Up @@ -14,18 +14,16 @@ var treeify = require('treeify');
var license = require('./license');

var flatten = function(options) {
var moduleInfo = {licenses: UNKNOWN},
var moduleInfo = { licenses: UNKNOWN },
json = options.deps,
data = options.data,
key = json.name + '@' + json.version,
colorize = options.color,
licenseData, files, licenseFile, key;
licenseData, files, licenseFile;

if (colorize) {
moduleInfo = {licenses: chalk.bold.red(UNKNOWN)};
key = chalk.blue(json.name) + chalk.dim('@') + chalk.green(json.version);
} else {
moduleInfo = {licenses: UNKNOWN};
key = json.name + '@' + json.version;
moduleInfo = { licenses: chalk.bold.red(UNKNOWN) };
key = chalk.blue(json.name) + chalk.dim('@') + chalk.green(json.version);
}

// If we have processed this key already, just return the data object.
Expand Down

0 comments on commit 2da23db

Please sign in to comment.