mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
Fixed text
This commit is contained in:
@@ -913,7 +913,7 @@ function validateJSONBuffer(
|
|||||||
try {
|
try {
|
||||||
contentAsJSON = JSON.parse(buffer.toString("utf8"));
|
contentAsJSON = JSON.parse(buffer.toString("utf8"));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new TypeError("Cannot validat Pass.json: invalid JSON");
|
throw new TypeError("Cannot validate Pass.json: invalid JSON");
|
||||||
}
|
}
|
||||||
|
|
||||||
return Schemas.validate(schema, contentAsJSON);
|
return Schemas.validate(schema, contentAsJSON);
|
||||||
|
|||||||
Reference in New Issue
Block a user