Skip to content

Instantly share code, notes, and snippets.

@jeremyorme
Created June 20, 2022 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyorme/44d7b216696a60dea49859b5a6b7399e to your computer and use it in GitHub Desktop.
Save jeremyorme/44d7b216696a60dea49859b5a6b7399e to your computer and use it in GitHub Desktop.
DbStoreUpdater._isStoreManifestValid
_isStoreManifestValid(manifest: IStoreManifest|null) {
// check_manifest_exists(IStoreManifest)
if (!manifest) {
console.log('[Db] ERROR: Manifest not found (address = ' + this._address + ')');
return false;
}
// check_manifest_syntax(IStoreManifest)
if (!validateStoreManifest(manifest)) {
console.log('[Db] ERROR: Manifest invalid (address = ' + this._address + ')');
return false;
}
// success!
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment