Simplify false return path

This commit is contained in:
Dean Herbert 2021-04-27 14:35:14 +09:00
parent 5a3fbef5ac
commit 2303d108bb

View File

@ -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