Skip to content

Commit 523e16d

Browse files
committed
solve lintr findings
1 parent 466b729 commit 523e16d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/helper_functions.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ derive_req_vars <- function(
175175
ref_range_upper_lim_var,
176176
sel_x,
177177
sel_y) {
178-
if (!is.null(dataset) & nrow(dataset) != 0) {
178+
if (!is.null(dataset) && nrow(dataset) != 0) {
179179
# Get the data frame in required structure (Pivot wider grouped by certain variables)
180180
dataset <- dataset %>%
181181
dplyr::filter(.data[[lb_test_var]] %in% c(sel_x, sel_y)) %>%
@@ -268,7 +268,7 @@ generate_plot <- function(
268268
y_rng_lower,
269269
y_rng_upper,
270270
source = NULL) {
271-
if (is.null(dataset) | nrow(dataset) == 0) {
271+
if (is.null(dataset) || nrow(dataset) == 0) {
272272
return(NULL)
273273
}
274274

0 commit comments

Comments
 (0)