diff options
author | Yash Ladha <yashladhapankajladha123@gmail.com> | 2020-04-16 14:54:32 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2020-04-16 14:54:51 +0200 |
commit | 0fd993195f7fea121d8d9d75c2d9d802435b3110 (patch) | |
tree | 2458a7f0c03b54d3ddb79d068694243f9a73ec38 /docs/src | |
parent | 80c18ffaf555716119210d5e66dfa8a58f2f846d (diff) | |
download | libuv-0fd993195f7fea121d8d9d75c2d9d802435b3110.tar.gz libuv-0fd993195f7fea121d8d9d75c2d9d802435b3110.zip |
timer: remove redundant check in heap compare
`timer_less_than()` function is basically a comparator function
that returns true or false. In the end of the function we were
checking for the comparison of id, but the later if is redundant
as we are anyways in the end are returning `0`. That extra check
can thus be safely removed.
PR-URL: https://github.com/libuv/libuv/pull/2785
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions