mirror of
https://github.com/osukey/osukey.git
synced 2025-05-28 17:07:35 +09:00
Simplify false return path
This commit is contained in:
parent
5a3fbef5ac
commit
2303d108bb
@ -54,15 +54,13 @@ namespace osu.Desktop.Security
|
||||
case RuntimeInfo.Platform.macOS:
|
||||
case RuntimeInfo.Platform.Linux:
|
||||
return Mono.Unix.Native.Syscall.geteuid() == 0;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private class ElevatedPrivilegesNotification : SimpleNotification
|
||||
|
Loading…
x
Reference in New Issue
Block a user