From 4a144b4d6a6a55ff15c47b6e62a1efdd7cbe2a1f Mon Sep 17 00:00:00 2001 From: Carsten Klein Date: Sat, 8 Feb 2020 00:07:12 +0100 Subject: [PATCH] code cleanup - remove documentation on old node version error code and errno --- lib/tmp.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/tmp.js b/lib/tmp.js index d12e753..30257da 100644 --- a/lib/tmp.js +++ b/lib/tmp.js @@ -604,22 +604,9 @@ function _isENOENT(error) { * error.code {string} * error.errno {string|number} any numerical value will be negated * - * - Node >= 6.0 < 7.0: - * error.code {string} - * error.errno {number} negated - * - * - Node >= 4.0 < 6.0: introduces SystemError - * error.code {string} - * error.errno {number} negated - * - * - Node >= 0.10 < 4.0: - * error.code {number} negated - * error.errno n/a - * * @private */ function _isExpectedError(error, code, errno) { - // TODO stop handling old node behaviour return error.code === code || error.code === errno; }