Fix lint issues from previous commit

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-06-03 10:50:55 +02:00
parent 6c072a2f7b
commit 9ea9769873
4 changed files with 5 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ func (s *Service) GenerateFileURL(ctx context.Context, fileID gid.GID) (string,
if err := file.LoadPublicByID(ctx, conn, fileID); err != nil {
return fmt.Errorf("cannot load public file: %w", err)
}
return nil
})
if err != nil {

View File

@@ -52,6 +52,7 @@ func (s *Service) GeneratePresignedFileURL(
if err := file.LoadPublicByID(ctx, conn, fileID); err != nil {
return fmt.Errorf("cannot load public file: %w", err)
}
return nil
})
if err != nil {

View File

@@ -505,7 +505,7 @@ func (impl *Implm) Run(
cookieBannerService := cookiebanner.NewService(pgClient, impl.cfg.Branding)
fileService := file.NewService(pgClient, baseURL)
fileService := file.NewService(pgClient, baseURL)
filesignService := filesign.NewService(pgClient, fileManagerService)
proboService, err := probo.NewService(
@@ -568,7 +568,7 @@ func (impl *Implm) Run(
AllowedOrigins: impl.cfg.Api.Cors.AllowedOrigins,
ExtraHeaderFields: impl.cfg.Api.ExtraHeaderFields,
Probo: proboService,
FileSign: filesignService,
FileSign: filesignService,
IAM: iamService,
Trust: trustService,
ESign: esignService,

View File

@@ -92,7 +92,7 @@ func NewServer(cfg Config) (*Server, error) {
BaseURL: cfg.BaseURL,
AllowedOrigins: cfg.AllowedOrigins,
Probo: cfg.Probo,
FileSign: cfg.FileSign,
FileSign: cfg.FileSign,
IAM: cfg.IAM,
Trust: cfg.Trust,
ESign: cfg.ESign,