Fix linting

This commit is contained in:
Ryan S. Brown 2016-11-08 15:32:37 -05:00
parent 20dee7cb1c
commit 0f86a9524e

View File

@ -142,7 +142,7 @@ class AwsCompileFunctions {
hash.end();
newVersion.Properties.CodeSha256 = hash.read();
newVersion.Properties.FunctionName = { 'Ref': functionLogicalId };
newVersion.Properties.FunctionName = { Ref: functionLogicalId };
const normalSha = newVersion.Properties.CodeSha256.replace(/[^0-9a-z]/gi, '');
@ -168,7 +168,7 @@ class AwsCompileFunctions {
newOutputObject);
const newVersionOutput = this.cfOutputLatestVersionTemplate();
newVersionOutput.Value = { 'Ref': versionLogicalId };
newVersionOutput.Value = { Ref: versionLogicalId };
_.merge(this.serverless.service.provider.compiledCloudFormationTemplate.Outputs, {
[`${functionLogicalId}QualifiedArn`]: newVersionOutput,