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

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