Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 7b2e9b0

Browse files
author
Ray Janoka
committed
Updating for lint issues
1 parent 52b6226 commit 7b2e9b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/workers/autotag_ami_worker.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class AutotagAMIWorker extends AutotagEC2Worker {
2020
resourceIds.push(this.getImageId());
2121

2222
this.imageSnapshot = await this.getImageSnapshot();
23-
if(this.imageSnapshot) resourceIds.push(this.getImageSnapshotId());
23+
if (this.imageSnapshot) resourceIds.push(this.getImageSnapshotId());
2424

2525
await this.tagEC2Resources(resourceIds);
2626
}
@@ -34,12 +34,12 @@ class AutotagAMIWorker extends AutotagEC2Worker {
3434
const delay = time => result => new Promise(resolve => setTimeout(() => resolve(result), time));
3535
let imageSnapshotDescription;
3636

37-
if(this.getEventName() === 'RegisterImage') {
37+
if (this.getEventName() === 'RegisterImage') {
3838
// the image was created from an existing snapshot so there is no new snapshot to tag
3939
return false;
40-
} else if(this.getEventName() === 'CopyImage') {
40+
} else if (this.getEventName() === 'CopyImage') {
4141
imageSnapshotDescription = `Copied for DestinationAmi ${this.getImageId()}*`;
42-
} else if(this.getEventName() === 'CreateImage') {
42+
} else if (this.getEventName() === 'CreateImage') {
4343
imageSnapshotDescription = `Created by CreateImage(*) for ${this.getImageId()}*`;
4444
} else {
4545
console.log(`Error: event name '${this.getEventName()}' not recognized, unable to tag associated snapshot`);

0 commit comments

Comments
 (0)