From a3195e7d219e8d4c9db9826905e22e986d523a06 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sun, 19 Sep 2021 20:17:09 +0200 Subject: [PATCH] Added forgotten return this --- src/PKPass.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PKPass.ts b/src/PKPass.ts index f1d7b69..276ac56 100644 --- a/src/PKPass.ts +++ b/src/PKPass.ts @@ -303,7 +303,7 @@ export default class PKPass extends Bundle { setBeacons(...beacons: (Schemas.Beacon | null)[]): this { if (beacons[0] === null) { delete this[propsSymbol]["beacons"]; - return; + return this; } this[propsSymbol]["beacons"] = Schemas.filterValid( @@ -338,7 +338,7 @@ export default class PKPass extends Bundle { setLocations(...locations: (Schemas.Location | null)[]): this { if (locations[0] === null) { delete this[propsSymbol]["locations"]; - return; + return this; } this[propsSymbol]["locations"] = Schemas.filterValid(