Fix lint issues

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-06-11 14:53:06 +02:00
parent 229c6b99c6
commit b36bbf9992
5 changed files with 12 additions and 0 deletions

View File

@@ -248,6 +248,7 @@ func normalizeCertifications(values []string) []string {
}
seen[key] = struct{}{}
out = append(out, v)
}

View File

@@ -250,6 +250,7 @@ func (h *enrichmentHandler) Process(ctx context.Context, party coredata.CommonTh
applyCertifications(&party, meta, prior, compliance.Certifications, h.cfg.ConfidenceThreshold, now)
status := enrichmentStatusDone
switch {
case !anySuccess:
status = enrichmentStatusFailed

View File

@@ -178,6 +178,7 @@ func downloadImage(
if err != nil {
return nil, "", fmt.Errorf("cannot fetch logo: %w", err)
}
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode != http.StatusOK {
@@ -188,6 +189,7 @@ func downloadImage(
if idx := strings.Index(contentType, ";"); idx != -1 {
contentType = contentType[:idx]
}
contentType = strings.TrimSpace(contentType)
if !strings.HasPrefix(contentType, "image/") {