Fix exit command in console interactive mode#2086
Conversation
|
Reminder for the PR assignee: If this is a user-visible change, please update the changelog as part of the PR. |
|
Hi and thank you for the Pull Request. The core team regularly reviews PRs, but this can take a little time. Please bear with us while we get to your review. If you're interested, the contribution guide has an FAQ with some info on PRs. In the meantime can you work through the checklist in the description and make sure you’ve completed each of the tasks? |
|
@ollevche - i hope i addressed all your concerns. I ran unit tests to make sure nothing is broken and did play around to make sure the behavior is not broken. |
9b6631a to
5454a6f
Compare
5454a6f to
e610453
Compare
|
no worries @ollevche |
e610453 to
c1f4188
Compare
When typing "exit" the code does run "break" but since "switch" is the innermost statement and not "for", the program is still running and not exiting with status code 0. To fix it, "if-else" is used instead of "switch-case". Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
c1f4188 to
a636f73
Compare
|
We forgot to update changelog file for this PR and some of the others. I opened a separate PR for this: #2116 |
When typing "exit" the code does run "break" but since "switch" is the innermost statement and not "for", the program is still running and not exiting with status code 0.
To fix it, "return 0" when "exit" is typed instead of "break".
Resolves #
Target Release
1.9.0
Checklist
Go checklist
Website/documentation checklist