Commit 088946da authored by Boris Kocherov's avatar Boris Kocherov

jslint fix

parent e51a0e05
...@@ -61,9 +61,9 @@ ...@@ -61,9 +61,9 @@
var schemas = arr[0], var schemas = arr[0],
docs = arr[1]; docs = arr[1];
g.props.schemas = docs.filter(function (v) { g.props.schemas = docs.filter(function (v) {
var suffix = "_schema.json"; var suffix = "_schema.json";
return v.indexOf(suffix, v.length - suffix.length) !== -1; return v.indexOf(suffix, v.length - suffix.length) !== -1;
}); });
g.props.schemas = g.props.schemas.concat([ g.props.schemas = g.props.schemas.concat([
"http://json-schema.org/draft-07/schema", "http://json-schema.org/draft-07/schema",
"http://json-schema.org/draft-06/schema", "http://json-schema.org/draft-06/schema",
......
...@@ -378,9 +378,8 @@ ...@@ -378,9 +378,8 @@
if (schema_arr.length === 1) { if (schema_arr.length === 1) {
if (schema_arr[0].type instanceof Array) { if (schema_arr[0].type instanceof Array) {
return schema_arr[0].type.length <= 1; return schema_arr[0].type.length <= 1;
} else {
return true;
} }
return true;
} }
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment