Skip to content

Commit

Permalink
use contains
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Jan 31, 2024
1 parent 9cf8ae9 commit 80ea74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/echtvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl EchtVars {
format!(
"##INFO=<ID={},Number={},Type={},Description=\"{}\">",
e.alias,
if vec!["A", "R", "G"].iter().any(|n| n == &e.number) {
if vec!["A", "R", "G"].contains(&e.number) {
"1"
} else {
&e.number
Expand Down

0 comments on commit 80ea74e

Please sign in to comment.