minor changes
This commit is contained in:
parent
9b6af3e20d
commit
53e6ac942a
@ -16,8 +16,8 @@ namespace uvw {
|
||||
class FsPoll final: public Handle<FsPoll> {
|
||||
static void startCallback(uv_fs_poll_t *handle, int status, const uv_stat_t *prev, const uv_stat_t *curr) {
|
||||
FsPoll &fsPoll = *(static_cast<FsPoll*>(handle->data));
|
||||
if(status) fsPoll.publish(ErrorEvent{status});
|
||||
else fsPoll.publish(FsPollEvent{ *prev, *curr });
|
||||
if(status) { fsPoll.publish(ErrorEvent{status}); }
|
||||
else { fsPoll.publish(FsPollEvent{ *prev, *curr }); }
|
||||
}
|
||||
|
||||
explicit FsPoll(std::shared_ptr<Loop> ref)
|
||||
|
||||
@ -79,8 +79,8 @@ class Stream: public Handle<T> {
|
||||
|
||||
static void listenCallback(uv_stream_t *handle, int status) {
|
||||
T &ref = *(static_cast<T*>(handle->data));
|
||||
if(status) ref.publish(ErrorEvent{status});
|
||||
else ref.publish(ListenEvent{});
|
||||
if(status) { ref.publish(ErrorEvent{status}); }
|
||||
else { ref.publish(ListenEvent{}); }
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user