Address code review feedback

- Fix indentation in syncBlob (use proper tabs)
- Remove redundant digest type conversion in SyncBlob
- Add O_TRUNC flag when creating temp files to prevent stale data
- Improve EOF handling in blob download loop
- Add named constant for temp directory path
- Enhance digest verification TODO with security note
- Add detailed comment explaining dummy tag usage
- Format all modified Go files

Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-26 01:34:47 +00:00
parent 655f86a438
commit d07dad670a
6 changed files with 80 additions and 64 deletions
+1 -1
View File
@@ -14,9 +14,9 @@ import (
"strings"
"time"
godigest "github.com/opencontainers/go-digest"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
godigest "github.com/opencontainers/go-digest"
"github.com/zitadel/oidc/v3/pkg/client/rp"
"zotregistry.dev/zot/v2/errors"