Skip to content

Commit d6ea1c0

Browse files
author
Federico Fissore
committed
Cleanup
1 parent 649bc6d commit d6ea1c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: arduino-core/src/processing/app/helpers/OSUtils.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ public class OSUtils {
77
*/
88
static public boolean isWindows() {
99
//return PApplet.platform == PConstants.WINDOWS;
10-
return System.getProperty("os.name").indexOf("Windows") != -1;
10+
return System.getProperty("os.name").contains("Windows");
1111
}
1212

1313
/**
1414
* true if running on linux.
1515
*/
1616
static public boolean isLinux() {
1717
//return PApplet.platform == PConstants.LINUX;
18-
return System.getProperty("os.name").indexOf("Linux") != -1;
18+
return System.getProperty("os.name").contains("Linux");
1919
}
2020

2121
/**
2222
* returns true if Processing is running on a Mac OS X machine.
2323
*/
2424
static public boolean isMacOS() {
2525
//return PApplet.platform == PConstants.MACOSX;
26-
return System.getProperty("os.name").indexOf("Mac") != -1;
26+
return System.getProperty("os.name").contains("Mac");
2727
}
2828

2929
}

0 commit comments

Comments
 (0)