MXS-1300: Use single quotes in Node.js code

The Node.js code should use single quotes as it appears to be a prevalent
style choice for Node.js applications.
This commit is contained in:
Markus Mäkelä
2017-06-30 15:37:35 +03:00
parent 8fb1137ef0
commit 6955be901f
6 changed files with 20 additions and 20 deletions

View File

@ -18,12 +18,12 @@ exports.handler = function() {}
exports.builder = function(yargs) {
yargs
.command('server <server> <status>', 'Clear server status', {}, function(argv) {
var target = 'servers/' + argv.server + "/clear?status=" + argv.status
doRequest(target, null, {method: "POST"})
var target = 'servers/' + argv.server + '/clear?status=' + argv.status
doRequest(target, null, {method: 'POST'})
})
.usage("Usage: clear <command>")
.usage('Usage: clear <command>')
.help()
.command('*', 'the default command', {}, () => {
console.log("Unknown command. See output of 'help clear' for a list of commands.")
console.log('Unknown command. See output of `help clear` for a list of commands.')
})
}