Skip to content

Commit 45bcdd4

Browse files
committed
lint
1 parent aba4cc5 commit 45bcdd4

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ServerlessStepFunctions {
6868
data: {
6969
usage: 'String data to be passed as an event to your step function',
7070
shortcut: 'd',
71-
}
71+
},
7272
},
7373
},
7474
},

lib/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module.exports = {
168168
.then(() => {
169169
this.serverless.cli.consoleLog('');
170170
this.serverless.cli.log(`Finish to deploy ${this.options.state} step function`);
171-
return BbPromise.resolve()
171+
return BbPromise.resolve();
172172
}).catch((error) => {
173173
if (error.message.match(/State Machine is being deleted/)) {
174174
this.serverless.cli.printDot();

lib/invoke.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ module.exports = {
1010

1111
return BbPromise.resolve();
1212
},
13-
13+
1414
startExecution() {
1515
this.serverless.cli.log(`Start function ${this.options.state}...`);
1616

1717
return this.provider.request('StepFunctions',
1818
'startExecution',
1919
{
2020
stateMachineArn: this.stateMachineArn,
21-
input: this.options.data
21+
input: this.options.data,
2222
},
2323
this.options.stage,
2424
this.options.region)
2525
.then((result) => {
26-
this.executionArn = result.executionArn
26+
this.executionArn = result.executionArn;
2727
return BbPromise.resolve();
2828
}).catch((error) => {
29-
console.log(error);
29+
throw new this.serverless.classes.Error(error.message);
3030
});
3131
},
3232

@@ -47,8 +47,6 @@ module.exports = {
4747
this.serverless.cli.consoleLog(result);
4848
}
4949
return BbPromise.resolve();
50-
}).catch((error) => {
51-
console.log(error);
5250
});
53-
}
54-
};
51+
},
52+
};

0 commit comments

Comments
 (0)