Fix golint errors

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-02 15:24:11 +01:00
parent b11ce54ccc
commit ece54f1616
38 changed files with 134 additions and 204 deletions

View File

@@ -127,7 +127,7 @@ func (s ReportService) exportPDFData(
if err != nil {
return nil, fmt.Errorf("cannot download PDF from S3: %w", err)
}
defer result.Body.Close()
defer func() { _ = result.Body.Close() }()
pdfData, err := io.ReadAll(result.Body)
if err != nil {

View File

@@ -40,7 +40,6 @@ type (
bucket string
proboSvc *probo.Service
encryptionKey cipher.EncryptionKey
tokenSecret string
slackSigningSecret string
baseURL string
iam *iam.Service

View File

@@ -141,7 +141,7 @@ func (s *TrustCenterFileService) exportFileData(
if err != nil {
return nil, fmt.Errorf("cannot download file from S3: %w", err)
}
defer result.Body.Close()
defer func() { _ = result.Body.Close() }()
fileData, err := io.ReadAll(result.Body)
if err != nil {