@@ -16,14 +16,12 @@ void ReportEndpoints(uv_handle_t* h, std::ostringstream& out) {
1616 int rc = -1 ;
1717
1818 switch (h->type ) {
19- case UV_UDP: {
19+ case UV_UDP:
2020 rc = uv_udp_getsockname (&(handle->udp ), addr, &addr_size);
2121 break ;
22- }
23- case UV_TCP: {
22+ case UV_TCP:
2423 rc = uv_tcp_getsockname (&(handle->tcp ), addr, &addr_size);
2524 break ;
26- }
2725 default :
2826 break ;
2927 }
@@ -70,28 +68,24 @@ void ReportPath(uv_handle_t* h, std::ostringstream& out) {
7068 uv_any_handle* handle = reinterpret_cast <uv_any_handle*>(h);
7169 // First call to get required buffer size.
7270 switch (h->type ) {
73- case UV_FS_EVENT: {
71+ case UV_FS_EVENT:
7472 rc = uv_fs_event_getpath (&(handle->fs_event ), buffer.data , &size);
7573 break ;
76- }
77- case UV_FS_POLL: {
74+ case UV_FS_POLL:
7875 rc = uv_fs_poll_getpath (&(handle->fs_poll ), buffer.data , &size);
7976 break ;
80- }
8177 default :
8278 break ;
8379 }
8480 if (rc == UV_ENOBUFS) {
8581 buffer = MallocedBuffer<char >(size);
8682 switch (h->type ) {
87- case UV_FS_EVENT: {
83+ case UV_FS_EVENT:
8884 rc = uv_fs_event_getpath (&(handle->fs_event ), buffer.data , &size);
8985 break ;
90- }
91- case UV_FS_POLL: {
86+ case UV_FS_POLL:
9287 rc = uv_fs_poll_getpath (&(handle->fs_poll ), buffer.data , &size);
9388 break ;
94- }
9589 default :
9690 break ;
9791 }
@@ -141,13 +135,12 @@ void WalkHandle(uv_handle_t* h, void* arg) {
141135 }
142136 break ;
143137 }
144- case UV_SIGNAL: {
138+ case UV_SIGNAL:
145139 // SIGWINCH is used by libuv so always appears.
146140 // See http://docs.libuv.org/en/v1.x/signal.html
147141 data << " signum: " << handle->signal .signum << " (" <<
148142 node::signo_string (handle->signal .signum ) << " )" ;
149143 break ;
150- }
151144 default :
152145 break ;
153146 }
0 commit comments