mirror of https://gitee.com/bigwinds/arangodb
ignore errors in jshintrc
This commit is contained in:
parent
e19a7f3728
commit
06660a6a68
|
@ -31,7 +31,14 @@ var console = require("console");
|
|||
var _ = require('underscore')
|
||||
|
||||
var JSHINT = require("jshint").JSHINT;
|
||||
var jshintrc = JSON.parse(fs.read('./js/.jshintrc'));
|
||||
var jshintrc = {};
|
||||
|
||||
try {
|
||||
jshintrc = JSON.parse(fs.read('./js/.jshintrc'));
|
||||
}
|
||||
catch (err) {
|
||||
// ignore any errors
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- public functions
|
||||
|
|
Loading…
Reference in New Issue