mirror of https://gitee.com/bigwinds/arangodb
Linting.
This commit is contained in:
parent
eb30d2aad0
commit
8266fb8252
|
@ -64,7 +64,9 @@ var Model,
|
||||||
|
|
||||||
excludeExtraAttributes = function (attributes, model) {
|
excludeExtraAttributes = function (attributes, model) {
|
||||||
'use strict';
|
'use strict';
|
||||||
if (!model.schema) return _.clone(attributes);
|
if (!model.schema) {
|
||||||
|
return _.clone(attributes);
|
||||||
|
}
|
||||||
return _.omit(attributes, _.difference(
|
return _.omit(attributes, _.difference(
|
||||||
_.keys(metadataSchema),
|
_.keys(metadataSchema),
|
||||||
_.keys(model.schema)
|
_.keys(model.schema)
|
||||||
|
|
Loading…
Reference in New Issue