mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +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.macOS:
|
||||||
case RuntimeInfo.Platform.Linux:
|
case RuntimeInfo.Platform.Linux:
|
||||||
return Mono.Unix.Native.Syscall.geteuid() == 0;
|
return Mono.Unix.Native.Syscall.geteuid() == 0;
|
||||||
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ElevatedPrivilegesNotification : SimpleNotification
|
private class ElevatedPrivilegesNotification : SimpleNotification
|
||||||
|
Loading…
Reference in New Issue
Block a user