mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -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,
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue