Skip to content

Commit 9f0a827

Browse files
author
Taras Buchko
authored
Merge pull request #2 from bucha09/master
fix: fixed eslint
2 parents 11e2b2d + 9f896a3 commit 9f0a827

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/deploy/events/cloudWatchEvent/compileCloudWatchEventEvents.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = {
9494
${InputPath ? `"InputPath": "${InputPath.replace(/\r?\n/g, '')}",` : ''}
9595
"Arn": { "Ref": "${stateMachineLogicalId}" },
9696
"Id": "${cloudWatchId}",
97-
${IamRole ? `"RoleArn":"${IamRole}"`:`"RoleArn": {
97+
${IamRole ? `"RoleArn":"${IamRole}"` : `"RoleArn": {
9898
"Fn::GetAtt": [
9999
"${cloudWatchIamRoleLogicalId}",
100100
"Arn"
@@ -148,17 +148,18 @@ module.exports = {
148148
[cloudWatchLogicalId]: JSON.parse(cloudWatchEventRuleTemplate),
149149
};
150150

151-
const objectsToMerge = [newCloudWatchEventRuleObject]
151+
const objectsToMerge = [newCloudWatchEventRuleObject];
152152

153-
if(!IamRole){
153+
if (!IamRole) {
154154
const newPermissionObject = {
155155
[cloudWatchIamRoleLogicalId]: JSON.parse(iamRoleTemplate),
156156
};
157-
158-
objectsToMerge.push(newPermissionObject)
157+
158+
objectsToMerge.push(newPermissionObject);
159159
}
160160

161-
_.merge(this.serverless.service.provider.compiledCloudFormationTemplate.Resources, ...objectsToMerge);
161+
_.merge(this.serverless.service.provider.compiledCloudFormationTemplate.Resources,
162+
...objectsToMerge);
162163
}
163164
});
164165
}

0 commit comments

Comments
 (0)