Skip to content

Commit

Permalink
chore: #1966 inserted line in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Jul 19, 2023
1 parent 651168f commit dceced5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/derive_joined.R
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ derive_vars_joined <- function(dataset,

filter_add <- assert_filter_cond(enexpr(filter_add), optional = TRUE)
filter_join <- assert_filter_cond(enexpr(filter_join), optional = TRUE)
original_new_vars <- new_vars
if (is.null(new_vars)) {
original_new_vars <- new_vars
new_vars <- chr2vars(colnames(dataset_add))
}

Expand Down Expand Up @@ -425,7 +425,7 @@ derive_vars_joined <- function(dataset,
) %>%
remove_tmp_vars()

if(is.null(original_new_vars)){
if (is.null(original_new_vars)) {
data_final <- data_final %>%
select(-ends_with("join"))
}
Expand Down

0 comments on commit dceced5

Please sign in to comment.