(dialect)
| 121 | } |
| 122 | |
| 123 | function getSourceByDialect(dialect) { |
| 124 | if (!dialect) { |
| 125 | return null; |
| 126 | } |
| 127 | |
| 128 | const sources = getOrchestratorSources(); |
| 129 | return sources.find((source) => { |
| 130 | return source.id === dialect || source.subType === dialect || source.type === dialect; |
| 131 | }) || null; |
| 132 | } |
| 133 | |
| 134 | function requireSourceById(sourceId) { |
| 135 | const source = getSourceById(sourceId); |
no test coverage detected