MCPcopy Create free account
hub / github.com/cli/cli / memoizedFetch

Method memoizedFetch

pkg/cmd/pr/shared/templates.go:230–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228}
229
230func (m *templateManager) memoizedFetch() error {
231 if m.didFetch {
232 return m.fetchError
233 }
234 m.fetchError = m.fetch()
235 m.didFetch = true
236 return m.fetchError
237}
238
239func (m *templateManager) fetch() error {
240 hasAPI, err := m.hasAPI()

Callers 3

HasTemplatesMethod · 0.95
ChooseMethod · 0.95
SelectMethod · 0.95

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected