(value, home)
| 13 | } |
| 14 | |
| 15 | function normalizeSettingsPath(value, home) { |
| 16 | const raw = String(value || '').trim(); |
| 17 | if (!raw) return null; |
| 18 | if (home && raw === '~') return path.resolve(home); |
| 19 | if (home && raw.startsWith('~/')) return path.resolve(home, raw.slice(2)); |
| 20 | return path.resolve(raw); |
| 21 | } |
| 22 | |
| 23 | function samePath(a, b) { |
| 24 | if (!a || !b) return false; |
no outgoing calls
no test coverage detected