Skip to content
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

Add a helper for yes/no questions #73

Merged
merged 1 commit into from
Nov 8, 2019
Merged

Conversation

blarz
Copy link
Contributor

@blarz blarz commented Nov 6, 2019

Until now we used a weird combination of input() and lower() and [0]
(which kind of explodes for empty input...) and duplicated the logic for
this.

Extract this code into a helper function and use it everywhere.

@blarz blarz requested a review from noqqe November 6, 2019 19:29
@blarz
Copy link
Contributor Author

blarz commented Nov 6, 2019

This is completely untested, I hacked this up on the train ;)

Until now we used a weird combination of input() and lower() and [0]
(which kind of explodes for empty input...) and duplicated the logic for
this.

Extract this code into a helper function and use it everywhere.
@blarz
Copy link
Contributor Author

blarz commented Nov 7, 2019

Tested adding and deleting users.

@noqqe noqqe merged commit cbdcb5b into k4cg:master Nov 8, 2019
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.

2 participants