Skip to content

Commit e8d0cef

Browse files
author
Ryan Kotzen
committed
fixing warnings.
1 parent 71b01ab commit e8d0cef

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/metadata/ensure-schema-set.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ var validator = require('../validate/validator');
55
module.exports = function ensureSchemaSet(metadata, operation, direction) {
66
if (!metadata.schemas[operation]) {
77
metadata.schemas[operation] = _.cloneDeep(metadata.schemas.core);
8-
} else {
9-
ensureNotCoreId(metadata.schemas[operation], metadata.schemas.core, operation);
10-
ensureNotCoreName(metadata.schemas[operation], metadata.schemas.core, operation, direction);
118
}
9+
ensureNotCoreId(metadata.schemas[operation], metadata.schemas.core, operation);
10+
ensureNotCoreName(metadata.schemas[operation], metadata.schemas.core, operation, direction);
1211
validator.addSchema(metadata.schemas[operation]);
1312
};
1413

0 commit comments

Comments
 (0)