thunderstore-io / Thunderstore

Thunderstore is a mod database and API for downloading mods. Thunderstore Discord: https://discord.thunderstore.io/
https://thunderstore.io/
GNU Affero General Public License v3.0
138 stars 28 forks source link

Reduce permissions boilerplate #973

Closed MythicManiac closed 11 months ago

MythicManiac commented 11 months ago

Replace multiple instances of copypaste code with a common implementation.

In some instances the replacement is slightly different than previously, but this is intended as some of the replaced checks were more lax than intended.

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ed54ff7) 92.93% compared to head (b6143c1) 92.99%. Report is 2 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #973 +/- ## ========================================== + Coverage 92.93% 92.99% +0.06% ========================================== Files 286 287 +1 Lines 8505 8471 -34 Branches 790 760 -30 ========================================== - Hits 7904 7878 -26 + Misses 497 493 -4 + Partials 104 100 -4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.