8000 poetry: Simplify `virtualenvs.in-project` boolean check · actions/setup-python@919d8be · GitHub
[go: up one dir, main page]

Skip to content

Commit 919d8be

Browse files
committed
poetry: Simplify virtualenvs.in-project boolean check
1 parent c674405 commit 919d8be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66100,7 +66100,7 @@ class PoetryCache extends cache_distributor_1.default {
6610066100
const cacheDir = poetryConfig['cache-dir'];
6610166101
const virtualenvsPath = poetryConfig['virtualenvs.path'].replace('{cache-dir}', cacheDir);
6610266102
paths.add(virtualenvsPath);
66103-
if (poetryConfig['virtualenvs.in-project'] === true) {
66103+
if (poetryConfig['virtualenvs.in-project']) {
6610466104
paths.add(path.join(basedir, '.venv'));
6610566105
}
6610666106
if (pythonLocation) {

src/cache-distributions/poetry-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class PoetryCache extends CacheDistributor {
4141

4242
paths.add(virtualenvsPath);
4343

44-
if (poetryConfig['virtualenvs.in-project'] === true) {
44+
if (poetryConfig['virtualenvs.in-project']) {
4545
paths.add(path.join(basedir, '.venv'));
4646
}
4747

0 commit comments

Comments
 (0)
0