remove unnecessary checks
This commit is contained in:
parent
e9dbb887c0
commit
309d660bbb
@ -16,9 +16,8 @@ UVW_INLINE int async_handle::init() {
|
||||
}
|
||||
|
||||
UVW_INLINE void async_handle::send() {
|
||||
if(auto err = uv_async_send(raw()); err != 0) {
|
||||
publish(error_event{err});
|
||||
}
|
||||
// uv_async_send only returns an error if the handle has the wrong type which is not the case here
|
||||
uv_async_send(raw());
|
||||
}
|
||||
|
||||
} // namespace uvw
|
||||
|
||||
Loading…
Reference in New Issue
Block a user