Skip to content

Commit

Permalink
Adding if-condition for eq operator and empty compare value
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunkhunti-crest authored Oct 31, 2023
1 parent 8d38c84 commit 41e8ecc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion check/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ func (t flagTestItem) findValue(s string) (match bool, value string, err error)
if strings.HasPrefix(t.Flag, "--") {
value = "true"
} else {
value = ""
if t.Compare.Op == "eq" {
value = ""
} else {
value = vals[1]
}
}
}
} else {
Expand Down

0 comments on commit 41e8ecc

Please sign in to comment.