Skip to content

Commit 11a38d4

Browse files
committed
Merge ifs with the same return value
1 parent e4c8c60 commit 11a38d4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/test/java/org/apache/commons/exec/TestUtil.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ public final class TestUtil {
3535
* @return int array[2] = {ok, success}
3636
*/
3737
public static int[] getTestScriptCodesForOS() {
38-
if (OS.isFamilyWindows()) {
39-
return new int[] { 0, 1 };
40-
}
41-
if (OS.isFamilyUnix()) {
38+
if (OS.isFamilyWindows() || OS.isFamilyUnix()) {
4239
return new int[] { 0, 1 };
4340
}
4441
if (OS.isFamilyOpenVms()) {

0 commit comments

Comments
 (0)