( source: SettingSource, )
| 307 | } |
| 308 | |
| 309 | export function getSettingsForSource( |
| 310 | source: SettingSource, |
| 311 | ): SettingsJson | null { |
| 312 | const cached = getCachedSettingsForSource(source) |
| 313 | if (cached !== undefined) return cached |
| 314 | const result = getSettingsForSourceUncached(source) |
| 315 | setCachedSettingsForSource(source, result) |
| 316 | return result |
| 317 | } |
| 318 | |
| 319 | function getSettingsForSourceUncached( |
| 320 | source: SettingSource, |
no test coverage detected