Skip to content

Commit c52fc20

Browse files
committed
Tidy up lint
1 parent 3977a3b commit c52fc20

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/commands/hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ catch(e) { bcrypt = require('bcryptjs'); }
2020

2121
function command(argv,result) {
2222
if (argv.json) {
23-
console.warn("hash-pw command does not support json format output")
23+
console.warn("hash-pw command does not support json format output");
2424
}
2525
return new Promise(resolve => {
2626
prompt.read({prompt:"Password:",silent: true},function(err, password) {

lib/commands/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var prompt = require("../prompt");
2121
function command(argv,result) {
2222
config.tokens(null);
2323
if (argv.json) {
24-
console.warn("login command does not support json format output")
24+
console.warn("login command does not support json format output");
2525
}
2626
return request.request('/auth/login',{}).then(function(resp) {
2727
if (resp.type) {

lib/commands/search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function command(argv,result) {
5050
description: m.n.description,
5151
version: (m.n['dist-tags']&& m.n['dist-tags'].latest)?m.n['dist-tags'].latest:undefined,
5252
updated_at: m.n.updated_at
53-
}})," ",4));
53+
};})," ",4));
5454
} else {
5555
matches.forEach(function(m) {
5656
result.log(m.label);
@@ -59,7 +59,7 @@ function command(argv,result) {
5959

6060
} else {
6161
if (argv.json) {
62-
result.log("[]")
62+
result.log("[]");
6363
} else {
6464
result.log("No results found");
6565
}

lib/commands/target.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function command(argv,result) {
3030

3131
}
3232
if (argv.json) {
33-
result.log(JSON.stringify({target: config.target()}," ",4))
33+
result.log(JSON.stringify({target: config.target()}," ",4));
3434
} else {
3535
result.log("Target: " + config.target());
3636
}

0 commit comments

Comments
 (0)