Skip to content

Commit fb63b94

Browse files
committed
Simplified condition expression
1 parent d851c29 commit fb63b94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/tinytest.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ if (requireNamespace("tinytest", quietly=TRUE)) {
33

44
## if OMP_THREAD_LIMIT is set, and its value is 2, we have a good
55
## idea of where we are and we likely do not want to run all tests
6-
if (Sys.getenv("OMP_THREAD_LIMIT", unset="") != "" && # it is set
7-
Sys.getenv("OMP_THREAD_LIMIT") == "2") { # value is two
6+
if (Sys.getenv("OMP_THREAD_LIMIT", unset="") == "2") { # set and 2
87
if (Sys.getenv("RunAllRcppTests", "") != "") { # if unset
98
Sys.setenv("RunAllRcppTests"="no")
109
}

0 commit comments

Comments
 (0)