Skip to content

Commit

Permalink
Fixing incorrect platform type detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Dansoftowner committed Apr 29, 2021
1 parent a3f30d1 commit ded427a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/java/com/jthemedetecor/util/OsInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class OsInfo {
final OperatingSystem osInfo = systemInfo.getOperatingSystem();
final OperatingSystem.OSVersionInfo osVersionInfo = osInfo.getVersionInfo();

platformType = SystemInfo.getCurrentPlatformEnum();
platformType = SystemInfo.getCurrentPlatform();
family = osInfo.getFamily();
version = osVersionInfo.getVersion();
}
Expand Down Expand Up @@ -71,14 +71,6 @@ public static String getFamily() {
return family;
}

private static int parseVersion(String version) {
try {
return Integer.parseInt(version.replace(".", ""));
} catch (NumberFormatException e) {
return 0;
}
}

private static boolean queryResultContains(@NotNull String cmd, @NotNull String subResult) {
return query(cmd).toLowerCase().contains(subResult);
}
Expand Down

0 comments on commit ded427a

Please sign in to comment.