Skip to content

Commit 6f4d5a4

Browse files
test: Use pattern matching in function arguments
1 parent 418ff50 commit 6f4d5a4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • tests/templates/kuttl/opa-authorization/trino_rules/trino

tests/templates/kuttl/opa-authorization/trino_rules/trino/util.rego

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ package trino
1010
# Returns:
1111
# result (boolean)
1212
# scope: document
13-
match_entire(pattern, value) if {
14-
pattern == `.*`
15-
}
13+
match_entire(`.*`, value)
1614

1715
match_entire(pattern, value) if {
1816
pattern != `.*`

0 commit comments

Comments
 (0)