Skip to content

Commit 3f83389

Browse files
committed
fmt code
1 parent 7198852 commit 3f83389

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ class RustPlugin {
5555
}
5656

5757
runDocker(funcArgs, cargoPackage, binary, profile) {
58-
const cargoHome = process.env.CARGO_HOME || path.join(homedir(), '.cargo');
59-
const cargoRegistry = path.join(cargoHome, 'registry');
60-
const cargoDownloads = path.join(cargoHome, 'git');
58+
const cargoHome = process.env.CARGO_HOME || path.join(homedir(), ".cargo");
59+
const cargoRegistry = path.join(cargoHome, "registry");
60+
const cargoDownloads = path.join(cargoHome, "git");
6161

62-
const dockerCLI = process.env['SLS_DOCKER_CLI'] || 'docker';
62+
const dockerCLI = process.env["SLS_DOCKER_CLI"] || "docker";
6363
const defaultArgs = [
64-
'run',
65-
'--rm',
66-
'-t',
67-
'-e',
64+
"run",
65+
"--rm",
66+
"-t",
67+
"-e",
6868
`BIN=${binary}`,
6969
`-v`,
7070
`${this.dockerPath}:/code`,
@@ -73,12 +73,12 @@ class RustPlugin {
7373
`-v`,
7474
`${cargoDownloads}:/root/.cargo/git`
7575
];
76-
const customArgs = (process.env['SLS_DOCKER_ARGS'] || '').split(' ') || [];
76+
const customArgs = (process.env["SLS_DOCKER_ARGS"] || "").split(" ") || [];
7777

7878
let cargoFlags = (funcArgs || {}).cargoFlags || this.custom.cargoFlags;
7979
if (profile) {
8080
// release or dev
81-
customArgs.push('-e', `PROFILE=${profile}`);
81+
customArgs.push("-e", `PROFILE=${profile}`);
8282
}
8383
if (cargoPackage != undefined) {
8484
if (cargoFlags) {
@@ -89,7 +89,7 @@ class RustPlugin {
8989
}
9090
if (cargoFlags) {
9191
// --features awesome-feature, ect
92-
customArgs.push('-e', `CARGO_FLAGS=${cargoFlags}`);
92+
customArgs.push("-e", `CARGO_FLAGS=${cargoFlags}`);
9393
}
9494
const dockerTag = (funcArgs || {}).dockerTag || this.custom.dockerTag;
9595
const dockerImage = (funcArgs || {}).dockerImage || this.custom.dockerImage;

0 commit comments

Comments
 (0)