mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Small optimization to PKPass.pack
This commit is contained in:
@@ -106,7 +106,9 @@ export default class PKPass extends Bundle {
|
|||||||
"application/vnd.apple.pkpasses",
|
"application/vnd.apple.pkpasses",
|
||||||
);
|
);
|
||||||
|
|
||||||
for (let i = 0, pass: PKPass; (pass = passes[i]); i++) {
|
for (let i = 0; i < passes.length; i++) {
|
||||||
|
const pass = passes[i];
|
||||||
|
|
||||||
if (!(pass instanceof PKPass)) {
|
if (!(pass instanceof PKPass)) {
|
||||||
throw new Error(Messages.PACK.INVALID);
|
throw new Error(Messages.PACK.INVALID);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user