MCPcopy Index your code
hub / github.com/isomorphic-git/isomorphic-git / assertParameter

Function assertParameter

src/utils/assertParameter.js:3–7  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

1import { MissingParameterError } from '../errors/MissingParameterError.js'
2
3export function assertParameter(name, value) {
4 if (value === undefined) {
5 throw new MissingParameterError(name)
6 }
7}

Callers 15

discoverGitdirFunction · 0.90
checkoutFunction · 0.90
commitFunction · 0.90
removeNoteFunction · 0.90
listFilesFunction · 0.90
readTreeFunction · 0.90
deleteRefFunction · 0.90
writeBlobFunction · 0.90
listNotesFunction · 0.90
initFunction · 0.90
updateIndexFunction · 0.90
tagFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…