MCPcopy
hub / github.com/di-sukharev/opencommit / deleteHeader

Method deleteHeader

out/cli.cjs:72127–72136  ·  view source on GitHub ↗
(_header)

Source from the content-addressed store, hash-verified

72125 const key = utils_default.findKey(this, header);
72126 return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
72127 }
72128 return false;
72129 }
72130 delete(header, matcher) {
72131 const self2 = this;
72132 let deleted = false;
72133 function deleteHeader(_header) {
72134 _header = normalizeHeader(_header);
72135 if (_header) {
72136 const key = utils_default.findKey(self2, _header);
72137 if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
72138 delete self2[key];
72139 deleted = true;

Callers

nothing calls this directly

Calls 2

normalizeHeaderFunction · 0.85
matchHeaderValueFunction · 0.85

Tested by

no test coverage detected