Commit 275153dd authored by cjihrig's avatar cjihrig Committed by Node.js GitHub Bot
Browse files

fs: use errno constant with ERR_FS_EISDIR

This commit updates rm() to use the EISDIR constant with
ERR_FS_EISDIR instead of hard coding -21.

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


Reviewed-By: default avatarBen Coe <bencoe@gmail.com>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarRichard Lau <rlau@redhat.com>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
parent 71a48c33
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