From 716b149c26d767c688c394fbced2443d3866cfe3 Mon Sep 17 00:00:00 2001
From: "Matthew T. Warkentin" <warkentin@lunenfeld.ca>
Date: Wed, 8 Jan 2025 14:28:12 -0700
Subject: [PATCH] Simplify if statements in test setup

---
 tests/testthat/setup.R | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R
index 780e16f..b87fe72 100644
--- a/tests/testthat/setup.R
+++ b/tests/testthat/setup.R
@@ -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)
   }