MCPcopy
hub / github.com/cli/cli / memoizedFetch

Method memoizedFetch

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

Source from the content-addressed store, hash-verified

229}
230
231func (m *templateManager) memoizedFetch() error {
232 if m.didFetch {
233 return m.fetchError
234 }
235 m.fetchError = m.fetch()
236 m.didFetch = true
237 return m.fetchError
238}
239
240func (m *templateManager) fetch() error {
241 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