MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / hasGrantConflict

Function hasGrantConflict

src/pkg/utils/script.ts:171–172  ·  view source on GitHub ↗
(metadata: SCMetadata | undefined | null)

Source from the content-addressed store, hash-verified

169 }
170 }
171 const hasGrantConflict = (metadata: SCMetadata | undefined | null) =>
172 metadata?.grant?.includes("none") && metadata?.grant?.some((s: string) => s.startsWith("GM"));
173 const hasDuplicatedMetaline = (metadata: SCMetadata | undefined | null) => {
174 if (metadata) {
175 for (const list of Object.values(metadata)) {

Callers 1

prepareScriptByCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected