Skip to content

Commit

Permalink
Use the right boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Feb 14, 2024
1 parent 2a7cbb2 commit 61d0e35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
)

if (func_name == "simulate_chains") {
if (!generation_time_specified) {
if (generation_time_specified) {
.check_generation_time_valid(generation_time)
} else if (!tf_specified) {
} else if (tf_specified) {
stop("If `tf` is specified, `generation_time` must be specified too.")
}
checkmate::assert_numeric(
Expand Down

0 comments on commit 61d0e35

Please sign in to comment.