MCPcopy
hub / github.com/webpack/webpack / checkHash

Method checkHash

lib/FileSystemInfo.js:3122–3131  ·  view source on GitHub ↗
(path, current, snap)

Source from the content-addressed store, hash-verified

3120 * @returns {boolean} true, if ok
3121 */
3122 const checkHash = (path, current, snap) => {
3123 if (current !== snap) {
3124 // If hash differ it's invalid
3125 if (this._remainingLogs > 0) {
3126 this._log(path, "hashes differ (%s != %s)", current, snap);
3127 }
3128 return false;
3129 }
3130 return true;
3131 };
3132 /**
3133 * Checks true, if ok.
3134 * @param {string} path file path

Callers

nothing calls this directly

Calls 1

_logMethod · 0.95

Tested by

no test coverage detected