From 83e5c82ca4102bad1f933b199ae2ea546364ee62 Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Sat, 14 Feb 2026 11:22:13 -0600 Subject: [PATCH] lint --- pkg/appview/handlers/repository.go | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkg/appview/handlers/repository.go b/pkg/appview/handlers/repository.go index c0cee52..57ea051 100644 --- a/pkg/appview/handlers/repository.go +++ b/pkg/appview/handlers/repository.go @@ -234,12 +234,12 @@ func (h *RepositoryPageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request var scanDigests []string var scanHoldEndpoint string for _, m := range manifests { - if !m.IsManifestList && m.Manifest.HoldEndpoint != "" { + if !m.IsManifestList && m.HoldEndpoint != "" { if scanHoldEndpoint == "" { - scanHoldEndpoint = m.Manifest.HoldEndpoint + scanHoldEndpoint = m.HoldEndpoint } - if m.Manifest.HoldEndpoint == scanHoldEndpoint { - scanDigests = append(scanDigests, strings.TrimPrefix(m.Manifest.Digest, "sha256:")) + if m.HoldEndpoint == scanHoldEndpoint { + scanDigests = append(scanDigests, strings.TrimPrefix(m.Digest, "sha256:")) } } } @@ -274,18 +274,18 @@ func (h *RepositoryPageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request data := struct { PageData - Meta *PageMeta - Owner *db.User // Repository owner - Repository *db.Repository // Repository summary - Tags []db.TagWithPlatforms // Tags with platform info - Manifests []db.ManifestWithMetadata // Top-level manifests only - StarCount int - PullCount int - IsStarred bool - IsOwner bool // Whether current user owns this repository - ReadmeHTML template.HTML - ArtifactType string // Dominant artifact type: container-image, helm-chart, unknown - ScanBatchParams template.HTML // Pre-encoded query string for batch scan-result endpoint + Meta *PageMeta + Owner *db.User // Repository owner + Repository *db.Repository // Repository summary + Tags []db.TagWithPlatforms // Tags with platform info + Manifests []db.ManifestWithMetadata // Top-level manifests only + StarCount int + PullCount int + IsStarred bool + IsOwner bool // Whether current user owns this repository + ReadmeHTML template.HTML + ArtifactType string // Dominant artifact type: container-image, helm-chart, unknown + ScanBatchParams template.HTML // Pre-encoded query string for batch scan-result endpoint }{ PageData: NewPageData(r, &h.BaseUIHandler), Meta: meta,