mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
8a7a754236
Extract the blob-to-blobstore promotion logic into a separate helper method (promoteBlobCandidate) to reduce the main function's cyclomatic complexity from 34 to 28, bringing it within the gocyclo threshold of 30. Also move blobCandidate and repoBlobRef type definitions to package level to support both the main function and helper. Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>