Skip to content

Commit

Permalink
code cleanup - remove documentation on old node version error code an…
Browse files Browse the repository at this point in the history
…d errno
  • Loading branch information
silkentrance committed Feb 7, 2020
1 parent 5cfca26 commit 4a144b4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/tmp.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4a144b4

Please sign in to comment.