Added forgotten return this

This commit is contained in:
Alexander Cerutti
2021-09-19 20:17:09 +02:00
parent 59efe84bc8
commit a3195e7d21

View File

@@ -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(