Created
June 20, 2022 14:44
-
-
Save jeremyorme/44d7b216696a60dea49859b5a6b7399e to your computer and use it in GitHub Desktop.
DbStoreUpdater._isStoreManifestValid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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