MCPcopy Create free account
hub / github.com/vercel/hyper / removePattern

Method removePattern

bin/yarn-standalone.js:77023–77036  ·  view source on GitHub ↗

* TODO description

(pattern)

Source from the content-addressed store, hash-verified

77021 */
77022
77023 removePattern(pattern) {
77024 const pkg = this.patterns[pattern];
77025 if (!pkg) {
77026 return;
77027 }
77028
77029 const byName = this.patternsByPackage[pkg.name];
77030 if (!byName) {
77031 return;
77032 }
77033
77034 byName.splice(byName.indexOf(pattern), 1);
77035 delete this.patterns[pattern];
77036 }
77037
77038 /**
77039 * TODO description

Callers 1

replacePatternMethod · 0.95

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected