MCPcopy Index your code
hub / github.com/github/docs / getContent

Function getContent

tests/linting/lint-files.js:297–301  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

295// Returns `content` if its a string, or `content.description` if it can.
296// Used for getting the nested `description` key in glossary files.
297function getContent(content) {
298 if (typeof content === 'string') return content
299 if (typeof content.description === 'string') return content.description
300 return null
301}
302
303const diffFiles = getDiffFiles()
304

Callers 1

lint-files.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected