Skip to content

Commit 2077e91

Browse files
authored
Fix lint errors
1 parent 67b26ae commit 2077e91

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/pip.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ function installRequirements(requirementsPath, targetFolder, serverless, service
4040
let cmdOptions;
4141
let pipCmd = [
4242
options.pythonBin, '-m', 'pip', '--isolated', 'install',
43-
'-t', dockerPathForWin(options, targetRequirementsFolder), '-r', dockerPathForWin(options, fileName),
43+
'-t', dockerPathForWin(options, targetRequirementsFolder),
44+
'-r', dockerPathForWin(options, fileName),
4445
...options.pipCmdExtraArgs,
4546
];
4647
if (!options.dockerizePip) {
@@ -122,6 +123,12 @@ function installRequirements(requirementsPath, targetFolder, serverless, service
122123
}
123124
};
124125

126+
/**
127+
* convert path from Windows style to Linux style, if needed
128+
* @param {Object} options
129+
* @param {string} path
130+
* @return {string}
131+
*/
125132
function dockerPathForWin(options, path) {
126133
if (process.platform === 'win32' && options.dockerizePip) {
127134
return path.replace('\\', '/');

0 commit comments

Comments
 (0)