Skip to content

Commit

Permalink
Tidy up lint
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jun 3, 2020
1 parent 3977a3b commit c52fc20
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/commands/hash.js
Expand Up @@ -20,7 +20,7 @@ catch(e) { bcrypt = require('bcryptjs'); }

function command(argv,result) {
if (argv.json) {
console.warn("hash-pw command does not support json format output")
console.warn("hash-pw command does not support json format output");
}
return new Promise(resolve => {
prompt.read({prompt:"Password:",silent: true},function(err, password) {
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/login.js
Expand Up @@ -21,7 +21,7 @@ var prompt = require("../prompt");
function command(argv,result) {
config.tokens(null);
if (argv.json) {
console.warn("login command does not support json format output")
console.warn("login command does not support json format output");
}
return request.request('/auth/login',{}).then(function(resp) {
if (resp.type) {
Expand Down
4 changes: 2 additions & 2 deletions lib/commands/search.js
Expand Up @@ -50,7 +50,7 @@ function command(argv,result) {
description: m.n.description,
version: (m.n['dist-tags']&& m.n['dist-tags'].latest)?m.n['dist-tags'].latest:undefined,
updated_at: m.n.updated_at
}})," ",4));
};})," ",4));
} else {
matches.forEach(function(m) {
result.log(m.label);
Expand All @@ -59,7 +59,7 @@ function command(argv,result) {

} else {
if (argv.json) {
result.log("[]")
result.log("[]");
} else {
result.log("No results found");
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/target.js
Expand Up @@ -30,7 +30,7 @@ function command(argv,result) {

}
if (argv.json) {
result.log(JSON.stringify({target: config.target()}," ",4))
result.log(JSON.stringify({target: config.target()}," ",4));
} else {
result.log("Target: " + config.target());
}
Expand Down

0 comments on commit c52fc20

Please sign in to comment.