From 7f88a38219294fcaea0b2bbd4d1c37dfa9d880ce Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Wed, 4 Jan 2023 22:45:27 +0000 Subject: [PATCH] Fix more empty return values --- .../document/body/section-properties/properties/page-borders.ts | 2 +- src/file/paragraph/run/symbol-run.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file/document/body/section-properties/properties/page-borders.ts b/src/file/document/body/section-properties/properties/page-borders.ts index 9477315838..894a805316 100644 --- a/src/file/document/body/section-properties/properties/page-borders.ts +++ b/src/file/document/body/section-properties/properties/page-borders.ts @@ -75,7 +75,7 @@ export class PageBorders extends IgnoreIfEmptyXmlComponent { super("w:pgBorders"); if (!options) { - return; + return this; } if (options.pageBorders) { diff --git a/src/file/paragraph/run/symbol-run.ts b/src/file/paragraph/run/symbol-run.ts index 336e878719..5848016ecc 100644 --- a/src/file/paragraph/run/symbol-run.ts +++ b/src/file/paragraph/run/symbol-run.ts @@ -11,7 +11,7 @@ export class SymbolRun extends Run { if (typeof options === "string") { super({}); this.root.push(new Symbol(options)); - return; + return this; } super(options);