Skip to content

Commit

Permalink
reformat line
Browse files Browse the repository at this point in the history
  • Loading branch information
kbvernon committed Nov 9, 2024
1 parent 43d3ffe commit 5c2b879
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/use_crate.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ use_crate <- function(
)

# clear empty options
is_null_or_empty_string <- function(x){ !nzchar(x) || rlang::is_empty(x) }
is_null_or_empty_string <- function(x) {
!nzchar(x) || rlang::is_empty(x)
}

cargo_add_opts <- purrr::discard(cargo_add_opts, is_null_or_empty_string)

# combine option names and values into single strings
Expand Down

0 comments on commit 5c2b879

Please sign in to comment.