Skip to content

Commit cc37ebc

Browse files
committed
Simplify call_xpath()
Since it is now handled by !is.na(fmt)
1 parent ea4aded commit cc37ebc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

R/sprintf_linter.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ sprintf_linter <- function() {
3030
fmt_by_name_xpath <- "SYMBOL_SUB[text() = 'fmt']/following-sibling::expr[1]/STR_CONST"
3131
call_xpath <- glue::glue("
3232
parent::expr[
33-
(
34-
OP-LEFT-PAREN/following-sibling::expr[1]/STR_CONST
35-
or {fmt_by_name_xpath}
36-
) and
3733
not(expr/SYMBOL[text() = '...'])
3834
]")
3935

0 commit comments

Comments
 (0)