diff --git a/src/specmap/lib/all-of.js b/src/specmap/lib/all-of.js index bf800b370..fde945a57 100644 --- a/src/specmap/lib/all-of.js +++ b/src/specmap/lib/all-of.js @@ -1,5 +1,3 @@ -import isEmpty from 'lodash/isEmpty'; - import { isFreelyNamed, generateAbsoluteRefPatches } from '../helpers.js'; export default { @@ -35,7 +33,7 @@ export default { originalDefinitionObj = { ...originalDefinitionObj }; // when we've lost sight, interrupt prematurely - if (isEmpty(originalDefinitionObj)) { + if (Object.keys(originalDefinitionObj).length === 0) { return undefined; }