1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
This commit is contained in:
David Sherret 2024-08-20 20:18:22 -04:00
parent 479c50875f
commit d889573afc

View file

@ -628,15 +628,11 @@ fn select_specific_version_for_upgrade(
force: bool, force: bool,
) -> Result<Option<AvailableVersion>, AnyError> { ) -> Result<Option<AvailableVersion>, AnyError> {
let current_is_passed = match release_channel { let current_is_passed = match release_channel {
ReleaseChannel::Stable | ReleaseChannel::Lts => { ReleaseChannel::Stable | ReleaseChannel::Rc | ReleaseChannel::Lts => {
version::DENO_VERSION_INFO.release_channel != ReleaseChannel::Canary version::DENO_VERSION_INFO.release_channel == release_channel
&& version::DENO_VERSION_INFO.deno == version && version::DENO_VERSION_INFO.deno == version
} }
ReleaseChannel::Canary => version::DENO_VERSION_INFO.git_hash == version, ReleaseChannel::Canary => version::DENO_VERSION_INFO.git_hash == version,
ReleaseChannel::Rc => {
version::DENO_VERSION_INFO.release_channel == ReleaseChannel::Rc
&& version::DENO_VERSION_INFO.deno == version
}
}; };
if !force && current_is_passed { if !force && current_is_passed {