-
Notifications
You must be signed in to change notification settings - Fork 932
Fix: If versionsToShow is not an array, return N/A #975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: If versionsToShow is not an array, return N/A #975
Conversation
|
Hey! Thanks for this PR. There seems to be a mismatch between your Prettier version and what we use here. Could you please run |
thymikee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| const versionsToShow = versions.join(', '); | ||
| const versionsToShow = Array.isArray(versions) | ||
| ? versions.join(', ') | ||
| : 'N/A'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the HealthCheckResult types to account for this type, so we can avoid similar issues in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @thymikee, thanks very much for the pointers, I have made the changes :) Thanks!
…an array of strings or a string
* If versionsToShow is not an array, return N/A * If versionsToShow is not an array, return N/A * ran yarn lint --fix * updated HealthCheckResult types to account for versions being either an array of strings or a string * deleted unneeded history file
Summary:
I tried using the
doctorcommand in my machine but it crashed like this:Turned out to be a problem with Android SDK not being identified and throwing an error because it returns
versionsin theandroidSDK.ts