Skip to content

Commit 3986e6a

Browse files
committed
fmt
1 parent 2600331 commit 3986e6a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class RustPlugin {
2929
this.servicePath = this.serverless.config.servicePath || "";
3030
this.hooks = {
3131
"before:package:createDeploymentArtifacts": this.build.bind(this),
32-
"before:deploy:function:packageFunction": this.build.bind(this)
32+
"before:deploy:function:packageFunction": this.build.bind(this),
3333
};
3434
if (includeInvokeHook(serverless.version)) {
3535
this.hooks["before:invoke:local:invoke"] = this.build.bind(this);
@@ -38,7 +38,7 @@ class RustPlugin {
3838
{
3939
cargoFlags: "",
4040
dockerTag: DEFAULT_DOCKER_TAG,
41-
dockerImage: DEFAULT_DOCKER_IMAGE
41+
dockerImage: DEFAULT_DOCKER_IMAGE,
4242
},
4343
(this.serverless.service.custom && this.serverless.service.custom.rust) ||
4444
{}
@@ -71,7 +71,7 @@ class RustPlugin {
7171
`-v`,
7272
`${cargoRegistry}:/root/.cargo/registry`,
7373
`-v`,
74-
`${cargoDownloads}:/root/.cargo/git`
74+
`${cargoDownloads}:/root/.cargo/git`,
7575
];
7676
const customArgs = (process.env["SLS_DOCKER_ARGS"] || "").split(" ") || [];
7777

@@ -97,8 +97,8 @@ class RustPlugin {
9797
const finalArgs = [
9898
...defaultArgs,
9999
...customArgs,
100-
`${dockerImage}:${dockerTag}`
101-
].filter(i => i);
100+
`${dockerImage}:${dockerTag}`,
101+
].filter((i) => i);
102102

103103
this.serverless.cli.log(
104104
`Running container build with: ${dockerCLI}, args: ${finalArgs}.`
@@ -121,7 +121,7 @@ class RustPlugin {
121121
return;
122122
}
123123
let rustFunctionsFound = false;
124-
this.functions().forEach(funcName => {
124+
this.functions().forEach((funcName) => {
125125
const func = service.getFunction(funcName);
126126
const runtime = func.runtime || service.provider.runtime;
127127
if (runtime != RUST_RUNTIME) {

0 commit comments

Comments
 (0)