Skip to content

Commit

Permalink
poetry: Simplify virtualenvs.in-project boolean check
Browse files Browse the repository at this point in the history
  • Loading branch information
oranav committed Dec 9, 2022
1 parent 95696f7 commit bb9c5ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/cache-distributions/poetry-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

Expand Down

0 comments on commit bb9c5ac

Please sign in to comment.