Skip to content

Commit 39387df

Browse files
committed
chore: cleanup after #133
1 parent 14a6beb commit 39387df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/printf.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ messagef = function(msg, ..., wrap = FALSE, class = NULL) {
7373
#' @export
7474
#' @rdname printf
7575
warningf = function(msg, ..., wrap = FALSE, class = NULL) {
76-
class <- c(class, c("mlr3warning", "simpleWarning", "warning", "condition"))
76+
class = c(class, "mlr3warning", "simpleWarning", "warning", "condition")
7777
message = str_wrap(sprintf(msg, ...), width = wrap)
7878
call = sys_call_unleanified()
7979
warning(structure(list(message = as.character(message), call = call), class = class))
@@ -82,7 +82,7 @@ warningf = function(msg, ..., wrap = FALSE, class = NULL) {
8282
#' @export
8383
#' @rdname printf
8484
stopf = function(msg, ..., wrap = FALSE, class = NULL) {
85-
class <- c(class, c("mlr3error", "simpleError", "error", "condition"))
85+
class = c(class, "mlr3error", "simpleError", "error", "condition")
8686
message = str_wrap(sprintf(msg, ...), width = wrap)
8787
call = sys_call_unleanified()
8888
stop(structure(list(message = as.character(message), call = call), class = class))

0 commit comments

Comments
 (0)