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

Handle nil cmds in tea.Sequentially #214

Merged
merged 1 commit into from Feb 2, 2022
Merged

Handle nil cmds in tea.Sequentially #214

merged 1 commit into from Feb 2, 2022

Conversation

ajeetdsouza
Copy link
Contributor

There are functions which may or may not return a tea.Cmd when they're done. Currently, I have to handle these nil values myself, leading to a lot of extra code.

It would be fantastic if tea.Sequentially would handle this for me.

@caarlos0
Copy link
Member

caarlos0 commented Feb 2, 2022

hey, this is a good catch, thank you!

@caarlos0 caarlos0 merged commit 7d18632 into charmbracelet:master Feb 2, 2022
caarlos0 added a commit that referenced this pull request Feb 2, 2022
refs #214

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0 caarlos0 added the bug Something isn't working label Feb 2, 2022
@ajeetdsouza ajeetdsouza deleted the patch-1 branch February 2, 2022 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants