Skip to content

Conversation

@fhemberger
Copy link
Contributor

In case versions.json could not be properly downloaded/parsed by
'node-version-data', avoid TypeError: Cannot read property 'find' of undefined
when releases is undefined and return undefined instead.

Error should be handled properly elsewhere.

See: #1618

In case `versions.json` could not be properly downloaded/parsed by
'node-version-data', avoid `TypeError: Cannot read property 'find' of undefined`
when `releases` is `undefined` and return `undefined` instead.

Error should be handled properly elsewhere.

See: #1618
@fhemberger
Copy link
Contributor Author

Although this is not really a fix for #1618, at least we should not throw in this case but fail gracefully.

Copy link
Contributor

@WaleedAshraf WaleedAshraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants