(paths: Array<string | undefined>)
| 314 | } |
| 315 | |
| 316 | function dedupePaths(paths: Array<string | undefined>): string[] { |
| 317 | const results: string[] = [] |
| 318 | const seen = new Set<string>() |
| 319 | for (const path of paths) { |
| 320 | if (!path || seen.has(path)) continue |
| 321 | seen.add(path) |
| 322 | results.push(path) |
| 323 | } |
| 324 | return results |
| 325 | } |
| 326 | |
| 327 | function getSettingsReadCandidatePathsForSource( |
| 328 | source: SettingSource, |
no test coverage detected