G-Rath / osv-detector

MIT License
61 stars 8 forks source link

test: use `t.Cleanup` instead of `defer` #249

Closed G-Rath closed 7 months ago

G-Rath commented 7 months ago

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