mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-23 03:45:47 -05:00
fix: code review alt repository (#6663)
I was not able to properly review this specific file from #6351 in time. - Remove unnecessary second Close call to xz writer. - Removed unused values. - Partition packages by architecture in the first loop to reduce the amount of iterations. - Don't compile regex, use `path.Split`. - Pass structs around. - Remove usage of bytes.buffer when there's no buffering. - Use a better data structure for building package lists. TL;DR no functional changes. --- Review this with "Ignore whitespace when comparing lines" enabled. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6663 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
c4d8f62673
commit
8f8856dcb8
1 changed files with 511 additions and 495 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue