Skip to content

Commit 3712fc6

Browse files
committed
linted
1 parent 0793b82 commit 3712fc6

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
},
@@ -234,7 +234,7 @@ class ServerlessDynamodbLocal {
234234
.then(() => options.seed && this.seedHandler())
235235
.then(() => {
236236
if (options.userStop) {
237-
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...")
237+
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...");
238238
return BbPromise.resolve()
239239
.then(() => this._listenForTermination())
240240
.then(() => this.endHandler());
@@ -273,18 +273,18 @@ class ServerlessDynamodbLocal {
273273

274274
_listenForTermination() {
275275
// SIGINT will be usually sent when user presses ctrl+c
276-
const waitForSigInt = new Promise(resolve => {
277-
process.on('SIGINT', () => resolve('SIGINT'));
276+
const waitForSigInt = new Promise((resolve) => {
277+
process.on("SIGINT", () => resolve("SIGINT"));
278278
});
279279

280280
// SIGTERM is a default termination signal in many cases,
281281
// for example when "killing" a subprocess spawned in node
282282
// with child_process methods
283-
const waitForSigTerm = new Promise(resolve => {
284-
process.on('SIGTERM', () => resolve('SIGTERM'));
283+
const waitForSigTerm = new Promise((resolve) => {
284+
process.on("SIGTERM", () => resolve("SIGTERM"));
285285
});
286286

287-
return Promise.race([waitForSigInt, waitForSigTerm]).then(command => {
287+
return Promise.race([waitForSigInt, waitForSigTerm]).then((command) => {
288288
this.serverlessLog(`Got ${command} signal. Will stop dynamodb local...`);
289289
});
290290
}

0 commit comments

Comments
 (0)