(cfg)
| 19 | } |
| 20 | |
| 21 | function getSourcesConfig(cfg) { |
| 22 | if (!cfg || typeof cfg !== 'object') return {}; |
| 23 | if (cfg.storageSources && typeof cfg.storageSources === 'object') return cfg.storageSources; |
| 24 | if (cfg.sources && typeof cfg.sources === 'object') return cfg.sources; |
| 25 | return {}; |
| 26 | } |
| 27 | |
| 28 | function hasSourceId(candidate, sources) { |
| 29 | const key = String(candidate || '').trim(); |
no outgoing calls
no test coverage detected