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,
) -> Result<Option<AvailableVersion>, AnyError> {
let current_is_passed = match release_channel {
ReleaseChannel::Stable | ReleaseChannel::Lts => {
version::DENO_VERSION_INFO.release_channel != ReleaseChannel::Canary
ReleaseChannel::Stable | ReleaseChannel::Rc | ReleaseChannel::Lts => {
version::DENO_VERSION_INFO.release_channel == release_channel
&& version::DENO_VERSION_INFO.deno == 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 {