Skip to content

Commit

Permalink
change check for correct class
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Krystalli <annakrystalli@googlemail.com>
  • Loading branch information
lshandross and annakrystalli authored Jul 27, 2023
1 parent e911d80 commit 2a3f533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/linear_pool.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ linear_pool <- function(model_outputs, weights = NULL,
task_id_cols = NULL,
...) {

if (isFALSE("model_out_tbl" %in% class(model_outputs))) {
if (!inherits(model_outputs, "model_out_tbl")) {
model_outputs <- hubUtils::as_model_out_tbl(model_outputs)
}

Expand Down

0 comments on commit 2a3f533

Please sign in to comment.