Skip to content

Commit

Permalink
chore(compartment-mapper): throw if no package policy
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jan 4, 2024
1 parent ee8debd commit 3e44c0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/compartment-mapper/src/node-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,12 @@ const translateGraph = (
policy,
);

/* c8 ignore next */
if (policy && !packagePolicy) {
// this should never happen
throw new TypeError('Unexpectedly falsy package policy');
}

/**
* @param {string} dependencyName
* @param {string} packageLocation
Expand Down

0 comments on commit 3e44c0d

Please sign in to comment.