Add pre-commit hook for formatting (#120)

This commit is contained in:
清风之恋
2025-04-21 21:55:29 +08:00
committed by GitHub
parent 7874fbacb8
commit 9c18b7abd9
5 changed files with 15 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ struct fs : async::awaiter::uv<fs<Derived, Ret>, uv_fs_t, Ret> {
if(this->request.result < 0) {
this->error = this->request.result;
}
uv_fs_req_cleanup(&this->request);
}

View File

@@ -30,7 +30,7 @@ void on_read(uv_stream_t* stream, ssize_t nread, const uv_buf_t* buf) {
uv_read_stop(stream);
uv_close(uv_cast<uv_handle_t>(*stream), nullptr);
/// FIXME: Figure out why the writer is already closed.
///uv_close(uv_cast<uv_handle_t>(*writer), nullptr);
/// uv_close(uv_cast<uv_handle_t>(*writer), nullptr);
return;
}