From 55a3bb5929d9f7ec623b47ba8b72e29fd39cfb9f Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Tue, 22 Jul 2014 17:39:29 +0200 Subject: [PATCH] style --- js/server/modules/org/arangodb/ahuacatl.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/server/modules/org/arangodb/ahuacatl.js b/js/server/modules/org/arangodb/ahuacatl.js index 953beaa91f..9d00f3c45c 100644 --- a/js/server/modules/org/arangodb/ahuacatl.js +++ b/js/server/modules/org/arangodb/ahuacatl.js @@ -4428,8 +4428,8 @@ function GENERAL_GRAPH_PATHS (graphName, options) { // check graph exists and load edgeDefintions var graph = DOCUMENT_HANDLE("_graphs/" + graphName); - if (!graph) { - THROW(INTERNAL.errors.ERROR_GRAPH_INVALID_GRAPH, "GRAPH_EDGES"); + if (! graph) { + THROW(INTERNAL.errors.ERROR_GRAPH_INVALID_GRAPH, "GRAPH_PATHS"); } var startCollections = [], edgeCollections = []; @@ -5835,6 +5835,7 @@ function GRAPH_NEIGHBORS (vertexCollection, /// /// @endDocuBlock //////////////////////////////////////////////////////////////////////////////// + function GENERAL_GRAPH_NEIGHBORS (graphName, vertexExample, options) { @@ -5844,7 +5845,7 @@ function GENERAL_GRAPH_NEIGHBORS (graphName, options = { }; } options.fromVertexExample = vertexExample; - if (!options.direction) { + if (! options.direction) { options.direction = 'any'; } @@ -5956,6 +5957,7 @@ function GENERAL_GRAPH_NEIGHBORS (graphName, /// /// @endDocuBlock //////////////////////////////////////////////////////////////////////////////// + function GENERAL_GRAPH_EDGES ( graphName, vertexExample,