Skip to content

Commit

Permalink
fix: missing parentheses with predicate queries
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals committed Dec 30, 2023
1 parent 2f848c1 commit e031af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error_templates/java/arithmetic_exception.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var ArithmeticException = lib.ErrorTemplate{
query = "(_) \"/\" ((decimal_integer_literal) @literal (#eq? @literal \"0\"))"
case "Non-terminating decimal expansion; no exact representable decimal result.":
ctx.kind = nonTerminatingDecimal
query = "(method_invocation) @methodCall (#eq? @methodCall \".divide\")"
query = "((method_invocation) @methodCall (#eq? @methodCall \".divide\"))"
default:
ctx.kind = unknown
}
Expand Down

0 comments on commit e031af4

Please sign in to comment.