mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-23 11:14:44 -04:00
Style Check
This commit is contained in:
parent
cc175505db
commit
c3dabfaab4
@ -5,6 +5,9 @@ import org.jackhuang.hmcl.util.platform.windows.WinReg;
|
||||
|
||||
public class AdminChecker {
|
||||
|
||||
private AdminChecker() {
|
||||
}
|
||||
|
||||
public static boolean isAdmin() {
|
||||
if (OperatingSystem.CURRENT_OS == OperatingSystem.WINDOWS) {
|
||||
return isWindowsAdmin();
|
||||
@ -40,4 +43,4 @@ public class AdminChecker {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user