mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-18 05:02:15 +03:00
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.