1
0
Fork 0

More linting.

This commit is contained in:
Alan Plum 2014-06-18 15:21:29 +02:00
parent c9d7f113a6
commit ba61e07e02
2 changed files with 50 additions and 51 deletions

View File

@ -589,12 +589,11 @@ function post_api_traversal(req, res) {
} else if (typeof json.graphName !== "string") {
return badParam(req, res, "invalid graphname");
} else {
}
if (!graph._exists(json.graphName)) {
return badParam(req, res, "invalid graphname");
}
datasource = traversal.generalGraphDatasourceFactory(json.graphName);
}
// set up filters

View File

@ -1,4 +1,4 @@
/*jslint indent: 2, nomen: true, maxlen: 120, todo: true, white: false, sloppy: false */
/*jslint indent: 2, nomen: true, maxlen: 120, white: false, sloppy: false */
/*global module, require, exports */
////////////////////////////////////////////////////////////////////////////////