Skip to content

Commit

Permalink
False positive in linter
Browse files Browse the repository at this point in the history
  • Loading branch information
aadler committed Apr 4, 2024
1 parent c275b63 commit b9a6d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# nocov start
.onLoad <- function(libname, pkgname) {
# Get reasonable selction for "max" cpus
options("DLPCPU" = as.integer(
options("DLPCPU" = as.integer( # nolint
getOption("DLPCPU", default = parallel::detectCores())
))
}

.onDetach <- function(libpath) {
# Restore reasonable option and remove holding variable
setDelapThreads(getOption("DLPCPU"))
options("DLPCPU" = NULL)
options("DLPCPU" = NULL) # nolint
}

.onUnload <- function(libpath) {
Expand Down

0 comments on commit b9a6d58

Please sign in to comment.