Skip to content

Commit

Permalink
correct logical expr in if in extract_param
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed May 1, 2024
1 parent 3bb0e0d commit 59be142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/extract_param.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ extract_param <- function(type = c("percentiles", "range"),
}
if (identical(type, "range")) {

if (values[2] < values[1] && values[1] < values[3]) {
if (!(values[2] < values[1] && values[1] < values[3])) {
stop("Distribution is ", distribution, " Values are ", values, " Type is ", type)

Check warning on line 105 in R/extract_param.R

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=R/extract_param.R,line=105,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 87 characters.
}

Expand Down

0 comments on commit 59be142

Please sign in to comment.