(err)
| 203 | this[kCurrentWriteRequest] = req; |
| 204 | |
| 205 | function done(err) { |
| 206 | if (!err && --pending !== 0) |
| 207 | return; |
| 208 | |
| 209 | // Ensure that this is called once in case of error |
| 210 | pending = 0; |
| 211 | |
| 212 | let errCode = 0; |
| 213 | if (err) { |
| 214 | errCode = uv[`UV_${err.code}`] || uv.UV_EPIPE; |
| 215 | } |
| 216 | |
| 217 | // Ensure that write was dispatched |
| 218 | setImmediate(() => { |
| 219 | self.finishWrite(handle, errCode); |
| 220 | }); |
| 221 | } |
| 222 | |
| 223 | return 0; |
| 224 | } |
nothing calls this directly
no test coverage detected