Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit a1f4557

Browse files
committed
Fix indentation
1 parent d13d198 commit a1f4557

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ class ServerlessPythonRequirements {
5858
}
5959
if (!options.dockerizePip && (options.dockerSsh||options.dockerImage||options.dockerFile)) {
6060
if (!this.warningLogged) {
61-
this.serverless.cli.log(
62-
'WARNING: You provided a docker related option but dockerizePip is set to false.'
63-
);
64-
this.warningLogged = true;
61+
this.serverless.cli.log(
62+
'WARNING: You provided a docker related option but dockerizePip is set to false.'
63+
);
64+
this.warningLogged = true;
6565
}
6666
}
6767
return options;

lib/docker.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,28 @@ function buildImage(dockerFile) {
4040
* @return {string} The bind path.
4141
*/
4242
function getBindPath(servicePath) {
43-
// Determine os platform of docker CLI from 'docker version'
44-
const options = ['version', '--format', '{{with .Client}}{{.Os}}{{end}}'];
45-
const ps = dockerCommand(options);
46-
const cliPlatform = ps.stdout.trim();
43+
// Determine os platform of docker CLI from 'docker version'
44+
const options = ['version', '--format', '{{with .Client}}{{.Os}}{{end}}'];
45+
const ps = dockerCommand(options);
46+
const cliPlatform = ps.stdout.trim();
4747

48-
// Determine bind path
49-
let bindPath;
50-
if (process.platform === 'win32') {
51-
bindPath = servicePath.replace(/\\([^\s])/g, '/$1');
52-
if (cliPlatform === 'windows') {
53-
bindPath = bindPath.replace(/^\/(\w)\//i, '$1:/');
54-
}
55-
} else if (isWsl) {
56-
bindPath = servicePath.replace(/^\/mnt\//, '/');
57-
if (cliPlatform === 'windows') {
58-
bindPath = bindPath.replace(/^\/(\w)\//i, '$1:/');
59-
}
60-
} else {
61-
bindPath = servicePath;
48+
// Determine bind path
49+
let bindPath;
50+
if (process.platform === 'win32') {
51+
bindPath = servicePath.replace(/\\([^\s])/g, '/$1');
52+
if (cliPlatform === 'windows') {
53+
bindPath = bindPath.replace(/^\/(\w)\//i, '$1:/');
6254
}
55+
} else if (isWsl) {
56+
bindPath = servicePath.replace(/^\/mnt\//, '/');
57+
if (cliPlatform === 'windows') {
58+
bindPath = bindPath.replace(/^\/(\w)\//i, '$1:/');
59+
}
60+
} else {
61+
bindPath = servicePath;
62+
}
6363

64-
return bindPath;
64+
return bindPath;
6565
};
6666

6767
module.exports = {buildImage, getBindPath};

0 commit comments

Comments
 (0)