From 78952cfe0f9829ab800fef0bb73314e0389932f8 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Sun, 8 Oct 2023 18:32:58 -0700 Subject: [PATCH] switch order --- R/unreachable_code_linter.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/unreachable_code_linter.R b/R/unreachable_code_linter.R index f42df276b..498ada071 100644 --- a/R/unreachable_code_linter.R +++ b/R/unreachable_code_linter.R @@ -62,8 +62,8 @@ unreachable_code_linter <- function() { # NB: use not(OP-DOLLAR) to prevent matching process$stop(), #1051 xpath_return_stop <- glue(" ( - (//FUNCTION | //OP-LAMBDA)/following-sibling::expr - | {expr_after_control} + {expr_after_control} + | (//FUNCTION | //OP-LAMBDA)/following-sibling::expr ) /expr[expr[1][ not(OP-DOLLAR or OP-AT)