Skip to content

Commit

Permalink
Fix error if packageDeps undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jalal246 committed Mar 16, 2020
1 parent d4c783c commit c08624a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packageSorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function isDepInSorted(dep) {
* @returns {boolean} result.hasCoreDep
* @returns {Object} result.dep
*/
function isPackageNeedCoreDep(packageDeps) {
function isPackageNeedCoreDep(packageDeps = {}) {
let hasCoreDep = false;
let dep;

Expand Down

0 comments on commit c08624a

Please sign in to comment.