mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-10 00:52:22 +02:00
Instead of checking it at every call site (to generate EBADF), we make file_description(fd) return a KResultOr<NonnullRefPtr<FileDescription>>. This allows us to wrap all the calls in TRY(). :^) The only place that got a little bit messier from this is sys$mount(), and there's a whole bunch of things there in need of cleanup.
13 KiB
13 KiB