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 GitHub
parent 4cc83c498b
commit 3666718ec5

View File

@@ -332,7 +332,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
}