Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Dec 11, 2024
1 parent d751dac commit ab2cf9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/CallbackEvaluation.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ callback_evaluation = function(
#' @return [CallbackEvaluation | List of [CallbackEvaluation]s.
#' @export
assert_evaluation_callback = function(callback, null_ok = FALSE) {
if (null_ok && is.null(callback)) return(invisible(NULL))
assert_class(callback, "CallbackEvaluation")
assert_class(callback, "CallbackEvaluation", null.ok = null_ok)
invisible(callback)
}

Expand Down

0 comments on commit ab2cf9b

Please sign in to comment.