mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
feedback
This commit is contained in:
parent
479c50875f
commit
d889573afc
1 changed files with 2 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue