1
0
Fork 0

fixed jslint warnings

This commit is contained in:
Jan Steemann 2013-02-14 11:40:14 +01:00
parent 6041c5c7f9
commit 4acd777b6c
3 changed files with 9 additions and 7 deletions

View File

@ -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);
}
}

View File

@ -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

View File

@ -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;
}
////////////////////////////////////////////////////////////////////////////////