mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 23:25:26 +00:00
Added forgotten return this
This commit is contained in:
@@ -303,7 +303,7 @@ export default class PKPass extends Bundle {
|
|||||||
setBeacons(...beacons: (Schemas.Beacon | null)[]): this {
|
setBeacons(...beacons: (Schemas.Beacon | null)[]): this {
|
||||||
if (beacons[0] === null) {
|
if (beacons[0] === null) {
|
||||||
delete this[propsSymbol]["beacons"];
|
delete this[propsSymbol]["beacons"];
|
||||||
return;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
this[propsSymbol]["beacons"] = Schemas.filterValid(
|
this[propsSymbol]["beacons"] = Schemas.filterValid(
|
||||||
@@ -338,7 +338,7 @@ export default class PKPass extends Bundle {
|
|||||||
setLocations(...locations: (Schemas.Location | null)[]): this {
|
setLocations(...locations: (Schemas.Location | null)[]): this {
|
||||||
if (locations[0] === null) {
|
if (locations[0] === null) {
|
||||||
delete this[propsSymbol]["locations"];
|
delete this[propsSymbol]["locations"];
|
||||||
return;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
this[propsSymbol]["locations"] = Schemas.filterValid(
|
this[propsSymbol]["locations"] = Schemas.filterValid(
|
||||||
|
|||||||
Reference in New Issue
Block a user