Skip to content

Commit

Permalink
remove unnecessary code from get_anon_chi
Browse files Browse the repository at this point in the history
`get_anon_chi` was updated in slfhelper v0.10
  • Loading branch information
marjom02 committed Jul 26, 2023
1 parent 4eb6b93 commit 212ddc8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/run_episode_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,7 @@ run_episode_file <- function(
load_ep_file_vars(year)

if (anon_chi_out) {
# TODO When slfhelper is updated remove the unnecessary code
episode_file <- episode_file %>%
tidyr::replace_na(list(chi = "")) %>%
slfhelper::get_anon_chi() %>%
dplyr::mutate(anon_chi = dplyr::na_if(.data$anon_chi, ""))
episode_file <- slfhelper::get_anon_chi(episode_file)
}

if (write_to_disk) {
Expand Down

0 comments on commit 212ddc8

Please sign in to comment.