Commit 49190d1
fix: panic loudly if the fallback style is missing
Fallback was a raw map index: if swapoff.xml were ever renamed or
removed it would silently become nil and GetForMode would
nil-panic at first use. Fail at init with a clear message instead.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 1ccaeea commit 49190d1
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
0 commit comments