Skip to content

Commit 12325f6

Browse files
committed
refactor utils.js
Signed-off-by: ambuj <[email protected]>
1 parent e2cd176 commit 12325f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/helpers/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13539,7 +13539,9 @@ export function getPipFrozenTree(
1353913539
thoughtLog("Performing poetry install");
1354013540
let poetryInstallArgs = ["-m", "poetry", "install", "-n", "--no-root"];
1354113541

13542-
const pyprojectpath = safeExistsSync(join(basePath, "pyproject.toml"));
13542+
const pyprojectpath = safeExistsSync(join(basePath, "pyproject.toml"))
13543+
? join(basePath, "pyproject.toml")
13544+
: null;
1354313545
const isPoetryV2 = parsePyProjectTomlFile(pyprojectpath).isPoetryV2;
1354413546
// checking if poetryV2 is true or not
1354513547
if (isPoetryV2) {

0 commit comments

Comments
 (0)