Skip to content

Commit

Permalink
fix: Fix handling of null value (#11506)
Browse files Browse the repository at this point in the history
  • Loading branch information
shogohida committed Nov 15, 2022
1 parent 4169ae1 commit c4902f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/plugins/package/package.js
Expand Up @@ -41,9 +41,10 @@ class Package {
Object.values(this.serverless.service.functions).some((func) =>
usesIncludeOrExclude(func.package)
) ||
Object.values(this.serverless.service.layers || {}).some((func) =>
usesIncludeOrExclude(func.package)
)
Object.values(this.serverless.service.layers || {}).some((func) => {
if (func != null) return usesIncludeOrExclude(func.package);
return false;
})
) {
this.serverless._logDeprecation(
'PACKAGE_PATTERNS',
Expand Down

0 comments on commit c4902f3

Please sign in to comment.