Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-05-26 09:15:47 -07:00
parent 22e50b3f11
commit 0d3b526db0
6 changed files with 96 additions and 14 deletions

View File

@@ -563,7 +563,7 @@ func readChecksum(path, archiveName string) (string, error) {
return "", fmt.Errorf("cannot read checksums: %w", err)
}
for _, line := range strings.Split(string(data), "\n") {
for line := range strings.SplitSeq(string(data), "\n") {
line = strings.TrimSpace(line)
if line == "" {
continue