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:
@ -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.')
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user