Skip to content

Commit

Permalink
perf: use anyNA()
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Jan 27, 2025
1 parent 50a99ec commit 26b0b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/expect-known.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,5 @@ expect_known_hash <- function(object, hash = NULL) {
}

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

0 comments on commit 26b0b1e

Please sign in to comment.