()
| 229 | } |
| 230 | |
| 231 | func (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 | |
| 240 | func (m *templateManager) fetch() error { |
| 241 | hasAPI, err := m.hasAPI() |
no test coverage detected