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

Method delete

out/cli.cjs:6559–6566  ·  view source on GitHub ↗

* Delete all header values given name * * @param String name Header name * @return Void

(name)

Source from the content-addressed store, hash-verified

6557 * @return Void
6558 */
6559 delete(name) {
6560 name = `${name}`;
6561 validateName(name);
6562 const key = find(this[MAP], name);
6563 if (key !== void 0) {
6564 delete this[MAP][key];
6565 }
6566 }
6567 /**
6568 * Return raw headers (non-spec api)
6569 *

Callers

nothing calls this directly

Calls 5

validateNameFunction · 0.85
findFunction · 0.85
isValidHeaderName2Function · 0.85
containsMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected