diff --git a/pkg/modules/libreoffice/api/singlepagesheets.go b/pkg/modules/libreoffice/api/singlepagesheets.go index ce2f5549..d61f461d 100644 --- a/pkg/modules/libreoffice/api/singlepagesheets.go +++ b/pkg/modules/libreoffice/api/singlepagesheets.go @@ -85,7 +85,7 @@ func resetCalcScrollPosition(ctx context.Context, logger *slog.Logger, inputPath _, err = dst.Write(out) if err != nil { - _ = os.Remove(dst.Name()) + _ = os.Remove(dst.Name()) //nolint:gosec // G703: dst is from os.CreateTemp in the working directory, not a caller-controlled path logger.WarnContext(ctx, fmt.Sprintf("reset calc scroll position: write sanitized file: %s; using the original file", err)) return inputPath }