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

test: use t.Cleanup instead of defer #249

Merged
merged 1 commit into from Mar 1, 2024
Merged

test: use t.Cleanup instead of defer #249

merged 1 commit into from Mar 1, 2024

Conversation

G-Rath
Copy link
Owner

@G-Rath G-Rath commented Feb 29, 2024

I recently learned about this, which saves a few lines of code - from what I can tell there's not a huge advantage over defer in non-helpers, but I think the consistency is nice

@G-Rath G-Rath merged commit ac33f16 into main Mar 1, 2024
8 checks passed
@G-Rath G-Rath deleted the automatic-cleanup branch March 1, 2024 19:54
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.

None yet

1 participant