From bb9c5ac469fa32ffeb379d753bb9515addc7b2d4 Mon Sep 17 00:00:00 2001 From: Oran Avraham Date: Tue, 15 Nov 2022 13:13:07 -0500 Subject: [PATCH] poetry: Simplify `virtualenvs.in-project` boolean check --- dist/setup/index.js | 2 +- src/cache-distributions/poetry-cache.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index d5793b2d..28e3cee7 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -66124,7 +66124,7 @@ class PoetryCache extends cache_distributor_1.default { const cacheDir = poetryConfig['cache-dir']; const virtualenvsPath = poetryConfig['virtualenvs.path'].replace('{cache-dir}', cacheDir); paths.add(virtualenvsPath); - if (poetryConfig['virtualenvs.in-project'] === true) { + if (poetryConfig['virtualenvs.in-project']) { paths.add(path.join(basedir, '.venv')); } if (pythonLocation) { diff --git a/src/cache-distributions/poetry-cache.ts b/src/cache-distributions/poetry-cache.ts index ac394645..24a96b13 100644 --- a/src/cache-distributions/poetry-cache.ts +++ b/src/cache-distributions/poetry-cache.ts @@ -41,7 +41,7 @@ class PoetryCache extends CacheDistributor { paths.add(virtualenvsPath); - if (poetryConfig['virtualenvs.in-project'] === true) { + if (poetryConfig['virtualenvs.in-project']) { paths.add(path.join(basedir, '.venv')); }