fix: scanner.Err() + log import

This commit is contained in:
“Naeel”
2026-08-09 10:25:12 +04:00
parent b1263a2e30
commit fe4b2f502a
+4
View File
@@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"sort"
@@ -109,6 +110,9 @@ func downloadVersion(w http.ResponseWriter, namespace, pType, version, osType, a
break
}
}
if err := scanner.Err(); err != nil {
log.Printf("Error scanning SHA256SUMS: %v", err)
}
}
baseURL := "https://" + hostname