Skip to content

Commit 29bcc00

Browse files
committed
linted
1 parent 94db862 commit 29bcc00

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class ServerlessDynamodbLocal {
9090
usage: "Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.",
9191
},
9292
userStop: {
93-
usage: 'After starting dynamodb local and all migrations and seeding is completed (if set to run), process will stay open until user terminates running process. When terminate signal received, it will stop the database on the running port.'
93+
usage: "After starting dynamodb local and all migrations and seeding is completed (if set to run), process will stay open until user terminates running process. When terminate signal received, it will stop the database on the running port."
9494
}
9595
}
9696
},
@@ -263,7 +263,7 @@ class ServerlessDynamodbLocal {
263263
.then(() => options.seed && this.seedHandler())
264264
.then(() => {
265265
if (options.userStop) {
266-
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...")
266+
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...");
267267
return BbPromise.resolve()
268268
.then(() => this._listenForTermination())
269269
.then(() => this.endHandler());
@@ -304,18 +304,18 @@ class ServerlessDynamodbLocal {
304304

305305
_listenForTermination() {
306306
// SIGINT will be usually sent when user presses ctrl+c
307-
const waitForSigInt = new Promise(resolve => {
308-
process.on('SIGINT', () => resolve('SIGINT'));
307+
const waitForSigInt = new Promise((resolve) => {
308+
process.on("SIGINT", () => resolve("SIGINT"));
309309
});
310310

311311
// SIGTERM is a default termination signal in many cases,
312312
// for example when "killing" a subprocess spawned in node
313313
// with child_process methods
314-
const waitForSigTerm = new Promise(resolve => {
315-
process.on('SIGTERM', () => resolve('SIGTERM'));
314+
const waitForSigTerm = new Promise((resolve) => {
315+
process.on("SIGTERM", () => resolve("SIGTERM"));
316316
});
317317

318-
return Promise.race([waitForSigInt, waitForSigTerm]).then(command => {
318+
return Promise.race([waitForSigInt, waitForSigTerm]).then((command) => {
319319
this.serverlessLog(`Got ${command} signal. Will stop dynamodb local...`);
320320
});
321321
}

0 commit comments

Comments
 (0)