mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00: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…
Reference in New Issue
Block a user