mirror of https://gitee.com/bigwinds/arangodb
fixed JSLint warnings
This commit is contained in:
parent
ce9136cbfa
commit
1df92a97b4
|
@ -715,13 +715,16 @@ var wait = function (data, shards) {
|
|||
var status = result.status;
|
||||
|
||||
if (status === "ERROR") {
|
||||
raiseError(arangodb.errors.ERROR_INTERNAL.code, "received an error from a DB server");
|
||||
raiseError(arangodb.errors.ERROR_INTERNAL.code,
|
||||
"received an error from a DB server");
|
||||
}
|
||||
else if (status === "TIMEOUT") {
|
||||
raiseError(arangodb.errors.ERROR_CLUSTER_TIMEOUT.code, arangodb.errors.ERROR_CLUSTER_TIMEOUT.message);
|
||||
raiseError(arangodb.errors.ERROR_CLUSTER_TIMEOUT.code,
|
||||
arangodb.errors.ERROR_CLUSTER_TIMEOUT.message);
|
||||
}
|
||||
else if (status === "DROPPED") {
|
||||
raiseError(arangodb.errors.ERROR_INTERNAL.code, "the operation was dropped");
|
||||
raiseError(arangodb.errors.ERROR_INTERNAL.code,
|
||||
"the operation was dropped");
|
||||
}
|
||||
else if (status === "RECEIVED") {
|
||||
received.push(result);
|
||||
|
@ -736,10 +739,12 @@ var wait = function (data, shards) {
|
|||
body = JSON.parse(result.body);
|
||||
}
|
||||
catch (err) {
|
||||
raiseError(arangodb.errors.ERROR_INTERNAL.code, "received an error from a DB server");
|
||||
raiseError(arangodb.errors.ERROR_INTERNAL.code,
|
||||
"received an error from a DB server");
|
||||
}
|
||||
|
||||
raiseError(body.errorNum, body.errorMessage);
|
||||
raiseError(body.errorNum,
|
||||
body.errorMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ function getAddr (endpoint) {
|
|||
|
||||
actions.startAgent = function (dispatchers, cmd) {
|
||||
var agentDataDir = fs.join(cmd.dataPath,
|
||||
"agent"+cmd.agencyPrefix+cmd.extPort)
|
||||
"agent"+cmd.agencyPrefix+cmd.extPort);
|
||||
if (fs.exists(agentDataDir)) {
|
||||
fs.removeDirectoryRecursive(agentDataDir,true);
|
||||
}
|
||||
|
@ -98,6 +98,7 @@ actions.startLauncher = function (dispatchers, cmd) {
|
|||
};
|
||||
|
||||
function dispatch (startupPlan) {
|
||||
var myname;
|
||||
if (!startupPlan.hasOwnProperty("myname")) {
|
||||
myname = "me";
|
||||
}
|
||||
|
|
|
@ -78,8 +78,8 @@
|
|||
// .coordinatorPorts a list ports to try to use for coordinators
|
||||
//
|
||||
|
||||
fs = require("fs");
|
||||
dispatch = require("org/arangodb/cluster/dispatcher").dispatch;
|
||||
var fs = require("fs");
|
||||
var dispatch = require("org/arangodb/cluster/dispatcher").dispatch;
|
||||
|
||||
// Our default configurations:
|
||||
|
||||
|
|
Loading…
Reference in New Issue