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 NoApp() #33

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Add NoApp() #33

merged 1 commit into from
Oct 23, 2024

Conversation

NeilLuno
Copy link
Contributor

As per the function comments, this is a helper function to make code that uses lu more readable.

If a function may accept a *lu.App but not require it to be non-nil. In that case, fn(lu.NoApp()) is clearer than fn(nil).

This emulates context.TODO(), in a way.

Copy link

sonarcloud bot commented Oct 23, 2024

@NeilLuno NeilLuno merged commit 71d29ec into main Oct 23, 2024
7 checks passed
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