Skip to content

Commit 07ceea5

Browse files
move text search to Xpath
1 parent 3018003 commit 07ceea5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

R/backport_linter.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,18 @@ backport_linter <- function(r_version = getRversion(), except = character()) {
5656
all_names <- xml_text(all_names_nodes)
5757

5858
bad_versions <- unname(backport_index[all_names])
59-
needs_backport <- !is.na(bad_versions)
6059

6160
lint_message <- sprintf(
6261
paste(
6362
"%s (R %s) is not available for dependency R >= %s.",
6463
"Use the `except` argument of `backport_linter()` to configure available backports."
6564
),
66-
all_names[needs_backport],
67-
bad_versions[needs_backport],
65+
all_names,
66+
bad_versions,
6867
r_version
6968
)
7069
xml_nodes_to_lints(
71-
all_names_nodes[needs_backport],
70+
all_names_nodes,
7271
source_expression = source_expression,
7372
lint_message = lint_message,
7473
type = "warning"

0 commit comments

Comments
 (0)