Files
OmniRoute/tests
adevwithpurpose ca4ba987b5 fix(cliproxy): thread runtime platform as a parameter instead of re-reading os.platform()
extractZip(), installVersion(), and rollbackVersion() each independently called
os.platform() inline in their own module scope even after #10244 switched the
detection helpers to os.platform()/os.arch(). Each independent call site is its
own opportunity for a bundler to constant-fold that particular occurrence away.

Detect the runtime platform once per orchestrating call (installVersion,
downloadRelease, rollbackVersion) and thread the already-detected value down as
an explicit parameter into extractZip and the symlink/copy decisions, instead of
re-reading the global in every helper.
2026-08-17 22:40:54 -03:00
..