Skip to content

Commit 67f4ae6

Browse files
committed
Update NEWSCHEMA() --> it still overrides existing schema.
1 parent 61bf4aa commit 67f4ae6

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

builders.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,18 +2413,10 @@ exports.newschema = function(group, name) {
24132413
if (!group)
24142414
group = DEFAULT_SCHEMA;
24152415

2416-
if (schemas[group] === undefined)
2416+
if (!schemas[group])
24172417
schemas[group] = new SchemaBuilder(group);
24182418

2419-
var schema;
2420-
2421-
if (name) {
2422-
schema = schemas[group].get(name);
2423-
if (!schema)
2424-
schema = schemas[group].create(name);
2425-
}
2426-
2427-
return schema;
2419+
return schemas[group].create(name);
24282420
};
24292421

24302422
/**

0 commit comments

Comments
 (0)