Fix lint issues from previous commit
Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user