Skip to content

Commit 9dd31b4

Browse files
authored
Merge pull request #117 from RedbirdHQ/bugfix/undefined-options
Fixing 'undefined variable options' error when noStart was not provided
2 parents 3edcbf4 + ce500b1 commit 9dd31b4

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

index.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,14 @@ class ServerlessDynamodbLocal {
149149
}
150150

151151
startHandler() {
152-
if (!this.options.noStart) {
153-
const config = this.config;
154-
const options = _.merge({
155-
sharedDb: this.options.sharedDb || true
156-
},
157-
config && config.start,
158-
this.options
159-
);
160-
152+
const config = this.config;
153+
const options = _.merge({
154+
sharedDb: this.options.sharedDb || true
155+
},
156+
config && config.start,
157+
this.options
158+
);
159+
if (!options.noStart) {
161160
dynamodbLocal.start(options);
162161
}
163162
return BbPromise.resolve()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-dynamodb-local",
3-
"version": "0.2.23",
3+
"version": "0.2.24",
44
"engines": {
55
"node": ">=4.0"
66
},

0 commit comments

Comments
 (0)