mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 14:40:18 +00:00
LibCore: Remove macro-generated EventReceiver::try_create(...) factories
We can just use the infallible factory everywhere instead.
This commit is contained in:
parent
aec1f6aa7e
commit
bd7599ccfc
Notes:
github-actions[bot]
2025-08-11 14:56:51 +00:00
Author: https://github.com/awesomekling
Commit: bd7599ccfc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817
Reviewed-by: https://github.com/gmta ✅
9 changed files with 18 additions and 23 deletions
|
@ -99,7 +99,7 @@ ErrorOr<NonnullRefPtr<FileWatcher>> FileWatcher::create(FileWatcherFlags flags)
|
|||
if (watcher_fd < 0)
|
||||
return Error::from_errno(errno);
|
||||
|
||||
auto notifier = TRY(Notifier::try_create(watcher_fd, Notifier::Type::Read));
|
||||
auto notifier = Notifier::construct(watcher_fd, Notifier::Type::Read);
|
||||
return adopt_nonnull_ref_or_enomem(new (nothrow) FileWatcher(watcher_fd, move(notifier)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue