Only allow explicit '' deploymentPrefix for empty

This commit is contained in:
Clar Charron 2019-11-12 10:48:28 -05:00 committed by GitHub
parent a74548da33
commit cebfde19a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -474,9 +474,7 @@ class AwsProvider {
if (!('deploymentPrefix' in provider)) {
return 'serverless;
}
const prefix = provider.deploymentPrefix;
return (prefix || '') + '';
return provider.deploymentPrefix + '';
}
getLogRetentionInDays() {