Skip to content

Commit

Permalink
Use existing NodeLTS::is_code_name function
Browse files Browse the repository at this point in the history
  • Loading branch information
catuhana committed Jul 3, 2024
1 parent 2bb6fdb commit 2aa3f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl NueCommand for CommandArguments {

releases_json
.iter()
.find(|release| matches!(release.lts, types::node::LTS::CodeName(_)))
.find(|release| release.lts.is_code_name())
}
VersionInputs::Latest => {
release_branch = "latest";
Expand Down
2 changes: 1 addition & 1 deletion src/cli/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl NueCommand for CommandArguments {
.collect(),
VersionInputs::Lts(None) => releases_json
.into_iter()
.filter(|release| matches!(release.lts, types::node::LTS::CodeName(_)))
.filter(|release| release.lts.is_code_name())
.collect(),
VersionInputs::All => releases_json,
};
Expand Down

0 comments on commit 2aa3f40

Please sign in to comment.