repo: fix potential null pointer dereference in mirror sync (#8065)

This commit is contained in:
Neptunium93
2025-12-04 00:04:42 +01:00
committed by Joe Chen
parent 5084b4a9b7
commit 33990972fa

View File

@@ -324,7 +324,7 @@ func SyncMirrors() {
m, err := GetMirrorByRepoID(com.StrTo(repoID).MustInt64())
if err != nil {
log.Error("GetMirrorByRepoID [%d]: %v", m.RepoID, err)
log.Error("GetMirrorByRepoID [%v]: %v", repoID, err)
continue
}