Skip to content

Commit

Permalink
use explaining variables
Browse files Browse the repository at this point in the history
  • Loading branch information
njtierney committed Jan 9, 2024
1 parent 11b9133 commit 40b2738
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/probability_distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ uniform_distribution <- R6Class(
)
}

good_types <- is.numeric(min) && length(min) == 1 &
is.numeric(max) && length(max) == 1
good_min <- is.numeric(min) && length(min) == 1
good_max <- is.numeric(max) && length(max) == 1
good_types <- good_min & good_max

if (!good_types) {
msg <- cli::format_error(
Expand Down

0 comments on commit 40b2738

Please sign in to comment.