mirror of https://gitee.com/bigwinds/arangodb
fixed errors reported by jslint
This commit is contained in:
parent
2cab878e56
commit
49c267bf0c
|
@ -1,7 +1,7 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, nonpropdel: true */
|
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, nonpropdel: true */
|
||||||
/*global require, db, ArangoCollection, ArangoDatabase, ArangoError, ArangoCursor,
|
/*global require, db, ArangoCollection, ArangoDatabase, ArangoError, ArangoCursor,
|
||||||
ShapedJson, RELOAD_AUTH, SYS_DEFINE_ACTION, SYS_EXECUTE_GLOBAL_CONTEXT_FUNCTION,
|
ShapedJson, RELOAD_AUTH, SYS_DEFINE_ACTION, SYS_EXECUTE_GLOBAL_CONTEXT_FUNCTION,
|
||||||
DATABASEPATH, THREAD_NUMBER */
|
DATABASEPATH, THREAD_NUMBER, AHUACATL_RUN, AHUACATL_PARSE, AHUACATL_EXPLAIN */
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief module "internal"
|
/// @brief module "internal"
|
||||||
|
|
|
@ -2703,7 +2703,11 @@ function GRAPH_TRAVERSAL (func, vertexCollection, edgeCollection, startVertex, d
|
||||||
/// @brief traverse a graph
|
/// @brief traverse a graph
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
function GRAPH_TRAVERSE (vertexCollection, edgeCollection, startVertex, direction, params) {
|
function GRAPH_TRAVERSE (vertexCollection,
|
||||||
|
edgeCollection,
|
||||||
|
startVertex,
|
||||||
|
direction,
|
||||||
|
params) {
|
||||||
params.visitor = TRAVERSE_VISITOR;
|
params.visitor = TRAVERSE_VISITOR;
|
||||||
|
|
||||||
return GRAPH_TRAVERSAL("TRAVERSE",
|
return GRAPH_TRAVERSAL("TRAVERSE",
|
||||||
|
@ -2720,7 +2724,12 @@ function GRAPH_TRAVERSE (vertexCollection, edgeCollection, startVertex, directio
|
||||||
/// a different visitor to create the result
|
/// a different visitor to create the result
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
function GRAPH_TREE (vertexCollection, edgeCollection, startVertex, direction, connectName, params) {
|
function GRAPH_TREE (vertexCollection,
|
||||||
|
edgeCollection,
|
||||||
|
startVertex,
|
||||||
|
direction,
|
||||||
|
connectName,
|
||||||
|
params) {
|
||||||
if (connectName === "") {
|
if (connectName === "") {
|
||||||
THROW(INTERNAL.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, "TREE");
|
THROW(INTERNAL.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, "TREE");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue