aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/json-schema.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-02 11:04:38 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-02 11:04:38 -0500
commitea808024d70e95b94dca7f846e7910573fed8466 (patch)
treebaee4e268c040c3e52ba29313fb411ff6226d478 /ext/bg/js/json-schema.js
parent3bef380e3be0a641ec5095ef73ddb5c8d48a342c (diff)
Fix missing else
Diffstat (limited to 'ext/bg/js/json-schema.js')
-rw-r--r--ext/bg/js/json-schema.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/json-schema.js b/ext/bg/js/json-schema.js
index 49f1e082..0ca1183e 100644
--- a/ext/bg/js/json-schema.js
+++ b/ext/bg/js/json-schema.js
@@ -134,7 +134,7 @@ class JsonSchemaProxyHandler {
const additionalProperties = schema.additionalProperties;
if (additionalProperties === false) {
return null;
- } if (JsonSchemaProxyHandler.isObject(additionalProperties)) {
+ } else if (JsonSchemaProxyHandler.isObject(additionalProperties)) {
return additionalProperties;
} else {
return JsonSchemaProxyHandler._unconstrainedSchema;