Skip to content

Commit

Permalink
Remove unnecessary tryCatch() statements targeting `insight::downlo…
Browse files Browse the repository at this point in the history
…ad_model()`

Fixes #732
  • Loading branch information
strengejacke committed Jul 10, 2024
1 parent 06ed6f1 commit cd9db8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-model_performance.bayesian.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test_that("model_performance.stanreg", {
skip_if_offline()
skip_if_not_installed("httr")
set.seed(333)
model <- tryCatch(insight::download_model("stanreg_lm_1"), error = function(e) NULL)
model <- insight::download_model("stanreg_lm_1")
skip_if(is.null(model))
perf <- model_performance(model)

Expand Down

0 comments on commit cd9db8f

Please sign in to comment.