Skip to content

Commit

Permalink
fix contains
Browse files Browse the repository at this point in the history
see #36
  • Loading branch information
brentp committed Feb 2, 2024
1 parent 80ea74e commit 692e845
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"].contains(&e.number) {
if ["A", "R", "G"].contains(&e.number.as_str()) {
"1"
} else {
&e.number
Expand Down

0 comments on commit 692e845

Please sign in to comment.