Skip to content

Commit 404bd0a

Browse files
remove redundant test of length, too
1 parent cf21327 commit 404bd0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/linters/rd/condition_class_docs_check.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ condition_classes_documentation_linter = function(rd_file) {
44

55
# Find condition classes in R code
66
walk_r_ast_for_classes = function(expr) {
7-
if (is.call(expr) && length(expr) >= 2L && identical(expr[[1L]], quote(stopf)) && is.character(class_arg <- expr[["class"]]) && startsWith(class_arg, "dt_")) {
7+
if (is.call(expr) && identical(expr[[1L]], quote(stopf)) && is.character(class_arg <- expr[["class"]]) && startsWith(class_arg, "dt_")) {
88
class_arg
99
} else if (is.recursive(expr)) {
1010
unlist(lapply(expr, walk_r_ast_for_classes))

0 commit comments

Comments
 (0)