Skip to content

Commit 1c1dfab

Browse files
carlos3gfacebook-github-bot
authored andcommitted
fix(eslint-plugin-specs): removes unnecessary ENOENT error check (#36448)
Summary: ```javascript // workaround nodejs/node#31481 // todo: remove the ENOENT error check when we drop node.js 13 support case 'ENOENT': case 'EACCES': ``` Well, there was a TODO comment asking to remove `ENOENT` error check when react native drop nodejs 13 support since nodejs 14 has fixed the bug that motivated this check. Now react native minimum nodejs version supported is nodejs 14, so this check is not needed anymore. ## Changelog [Internal] [Fixed] - Removes `ENOENT` error check <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> Pull Request resolved: #36448 Reviewed By: NickGerleman Differential Revision: D44025087 Pulled By: cortinico fbshipit-source-id: f42cb7105a088e2eea207da12d4e63c6d26f3c77
1 parent 379d9d4 commit 1c1dfab

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/eslint-plugin-specs/with-babel-register/disk-cache.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ function save() {
6161
fs.writeFileSync(FILENAME, serialised);
6262
} catch (e) {
6363
switch (e.code) {
64-
// workaround https://github.com/nodejs/node/issues/31481
65-
// todo: remove the ENOENT error check when we drop node.js 13 support
66-
case 'ENOENT':
6764
case 'EACCES':
6865
case 'EPERM':
6966
console.warn(

0 commit comments

Comments
 (0)