Unverified Commit c797c7c7 authored by Daniel Bevenius's avatar Daniel Bevenius Committed by Shelley Vohr
Browse files

src: reduce duplication in RegisterHandleCleanups

This commit suggest using a lambda for the RegisterHandlerCleanup calls
in RegisterHandleCleanups.

The motivation is to reduce some duplication and to make it a little
easier to read as all of the calls pass in the same arguments, apart
from casting the uv handle.

PR-URL: https://github.com/nodejs/node/pull/33421


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarRichard Lau <riclau@uk.ibm.com>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarZeyu Yang <himself65@outlook.com>
Reviewed-By: default avatarDavid Carlier <devnexen@gmail.com>
parent 0c9b826e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment