Skip to content

Commit 4a144b4

Browse files
committed
code cleanup - remove documentation on old node version error code and errno
1 parent 5cfca26 commit 4a144b4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/tmp.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -604,22 +604,9 @@ function _isENOENT(error) {
604604
* error.code {string}
605605
* error.errno {string|number} any numerical value will be negated
606606
*
607-
* - Node >= 6.0 < 7.0:
608-
* error.code {string}
609-
* error.errno {number} negated
610-
*
611-
* - Node >= 4.0 < 6.0: introduces SystemError
612-
* error.code {string}
613-
* error.errno {number} negated
614-
*
615-
* - Node >= 0.10 < 4.0:
616-
* error.code {number} negated
617-
* error.errno n/a
618-
*
619607
* @private
620608
*/
621609
function _isExpectedError(error, code, errno) {
622-
// TODO stop handling old node behaviour
623610
return error.code === code || error.code === errno;
624611
}
625612

0 commit comments

Comments
 (0)