Skip to content

Commit

Permalink
fix(pypi): fix variable shadowing (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman committed Jan 29, 2024
1 parent dcd0ea3 commit aa550fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/mason-core/installer/managers/pypi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ end
local function create_venv()
local stock_candidates = platform.is.win and { "python", "python3" } or { "python3", "python" }
local stock_target = resolve_python3(stock_candidates)
local _ = stock_target and log.fmt_debug("Resolved stock python3 installation version %s", stock_target.version)
if stock_target then
log.fmt_debug("Resolved stock python3 installation version %s", stock_target.version)
end
local versioned_candidates = get_versioned_candidates(stock_target and stock_target.version)
log.debug("Resolving versioned python3 candidates", versioned_candidates)
local target = resolve_python3(versioned_candidates) or stock_target
Expand Down

0 comments on commit aa550fb

Please sign in to comment.