Commit 1d9d6f60 authored by Boris Kocherov's avatar Boris Kocherov

fix jslint

parent 93ed8524
...@@ -531,10 +531,10 @@ ...@@ -531,10 +531,10 @@
for (ii = 0; ii < key_list.length; ii += 1) { for (ii = 0; ii < key_list.length; ii += 1) {
kk = decodeJsonPointer(key_list[ii]); kk = decodeJsonPointer(key_list[ii]);
if (ii === key_list.length - 1) { if (ii === key_list.length - 1) {
if (value === undefined) { if (value !== undefined) {
return d[kk];
} else {
d[kk] = value; d[kk] = value;
} else {
return d[kk];
} }
} else { } else {
if (!d.hasOwnProperty(kk)) { if (!d.hasOwnProperty(kk)) {
...@@ -730,10 +730,10 @@ ...@@ -730,10 +730,10 @@
.declareMethod('processValidation', function (schema_url, json_dict) { .declareMethod('processValidation', function (schema_url, json_dict) {
var g = this; var g = this;
if (!schema_url) { if (!schema_url) {
if (!g.options.schema_url) { if (g.options.schema_url) {
return g.processValidationParent(json_dict);
} else {
schema_url = g.options.schema_url; schema_url = g.options.schema_url;
} else {
return g.processValidationParent(json_dict);
} }
} }
if (!json_dict) { if (!json_dict) {
......
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