Skip to content

Commit

Permalink
Do not have --report lcovonly, remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Mar 2, 2015
1 parent c665594 commit fefb951
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ if (cli.input[0]) {
};

console.log(getPkgRepo(pkgData, cli.flags.fixTypo));
}

else {
} else {
process.stdin
.pipe(through(function(chunk, enc, callback) {
var url = getPkgRepo(chunk.toString(), cli.flags.fixTypo);
Expand Down
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ function getPkgRepo(pkgData, fixTypo, warn) {

try {
pkgData = JSON.parse(pkgData);
}
catch (e) {}
} catch (e) {}

if (fixTypo && !pkgData.repository) {
forEach(typos, function(val) {
if (pkgData[val]){
if (pkgData[val]) {
warn(pkgData[val] + ' should probably be repository.');
pkgData.repository = pkgData[val];
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"scripts": {
"test": "mocha",
"coverage": "istanbul cover _mocha --report lcovonly -- -R spec && rm -rf ./coverage"
"coverage": "istanbul cover _mocha -- -R spec && rm -rf ./coverage"
},
"bin": {
"get-pkg-repo": "cli.js"
Expand Down

0 comments on commit fefb951

Please sign in to comment.