From 7620e3791ce570a5d0fca3958ba8f8c55d257952 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 6 Aug 2024 10:42:27 -0700 Subject: [PATCH] slightly improve readability of XPath --- R/brace_linter.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/brace_linter.R b/R/brace_linter.R index 1b40fd854..fc69c53cf 100644 --- a/R/brace_linter.R +++ b/R/brace_linter.R @@ -141,7 +141,7 @@ brace_linter <- function(allow_single_line = FALSE, ) xp_function_brace <- glue( - "(//FUNCTION | //OP-LAMBDA)/parent::expr[{xp_cond_function_brace} and not(expr[OP-LEFT-BRACE])]" + "(//FUNCTION | //OP-LAMBDA)/parent::expr[{xp_cond_function_brace} and not(expr/OP-LEFT-BRACE)]" ) msg_function_brace <- switch(