Skip to content

Commit

Permalink
refactor: replace lodash/isEmpty with vanilla JavaScript (#2334)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Gorej <[email protected]>

Refs #2187
  • Loading branch information
jimmywarting authored Nov 11, 2021
1 parent b57bd4b commit b75eed7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/specmap/lib/all-of.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import isEmpty from 'lodash/isEmpty';

import { isFreelyNamed, generateAbsoluteRefPatches } from '../helpers.js';

export default {
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b75eed7

Please sign in to comment.