MCPcopy Create free account
hub / github.com/emwalker/digraph / name

Function name

client/src/mutations/updateTopicSynonymsMutation.ts:14–25  ·  view source on GitHub ↗
(synonyms: readonly SynonymType[])

Source from the content-addressed store, hash-verified

12} from '__generated__/RepoTopicSynonyms_repoTopic.graphql'
13
14function name(synonyms: readonly SynonymType[]) {
15 if (synonyms.length > 0) {
16 for (const synonym of synonyms) {
17 if (synonym.locale !== 'en') // FIXME
18 continue
19 return synonym.name
20 }
21 return synonyms[0].name
22 }
23
24 return 'Missing name'
25}
26
27function displayName(synonyms: readonly SynonymType[], timerangPrefix: string | null) {
28 const suffix = name(synonyms)

Callers 1

displayNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected