Skip to content

Commit

Permalink
Simplify if statements in test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwarkentin committed Jan 8, 2025
1 parent ae529dd commit 716b149
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ local_install_openmpp <- function() {

if (os == 'Windows') {
unzip(path, exdir = dir)
} else {
untar(path, exdir = dir)
}

if (os == 'Windows') {
new_path <- dirname(path)
} else {
untar(path, exdir = dir)
new_path <- tools::file_path_sans_ext(path, compression = TRUE)
}

Expand Down

0 comments on commit 716b149

Please sign in to comment.