mirror of https://gitee.com/bigwinds/arangodb
fixed jslint warnings
This commit is contained in:
parent
6041c5c7f9
commit
4acd777b6c
|
@ -104,7 +104,7 @@ function clear () {
|
|||
if (internal.ARANGO_QUIET !== true) {
|
||||
if (typeof internal.arango !== "undefined") {
|
||||
if (typeof internal.arango.isConnected !== "undefined") {
|
||||
if (internal.arango.isConnected() && typeof SYS_UNIT_TESTS == "undefined") {
|
||||
if (internal.arango.isConnected() && typeof SYS_UNIT_TESTS === "undefined") {
|
||||
internal.print(arangosh.HELP);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -733,7 +733,7 @@
|
|||
internal.startCaptureMode = function () {
|
||||
internal.outputBuffer = "";
|
||||
internal.output = internal.bufferOutput;
|
||||
}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief stop capture mode
|
||||
|
@ -746,7 +746,7 @@
|
|||
internal.output = internal.stdOutput;
|
||||
|
||||
return buffer;
|
||||
}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief start color printing
|
||||
|
|
|
@ -2864,21 +2864,23 @@ function GRAPH_TRAVERSAL_TREE (vertexCollection,
|
|||
function GRAPH_EDGES (edgeCollection,
|
||||
vertex,
|
||||
direction) {
|
||||
var c = COLLECTION(edgeCollection);
|
||||
var c = COLLECTION(edgeCollection), result;
|
||||
|
||||
// validate arguments
|
||||
if (direction === "outbound") {
|
||||
return c.outEdges(vertex);
|
||||
result = c.outEdges(vertex);
|
||||
}
|
||||
else if (direction === "inbound") {
|
||||
return c.inEdges(vertex);
|
||||
result = c.inEdges(vertex);
|
||||
}
|
||||
else if (direction === "any") {
|
||||
return c.edges(vertex);
|
||||
result = c.edges(vertex);
|
||||
}
|
||||
else {
|
||||
THROW(INTERNAL.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, "EDGES");
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue