Skip to content

Commit 26b0b1e

Browse files
committed
perf: use anyNA()
1 parent 50a99ec commit 26b0b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/expect-known.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,5 +215,5 @@ expect_known_hash <- function(object, hash = NULL) {
215215
}
216216

217217
all_utf8 <- function(x) {
218-
! any(is.na(iconv(x, "UTF-8", "UTF-8")))
218+
!anyNA(iconv(x, "UTF-8", "UTF-8"))
219219
}

0 commit comments

Comments
 (0)