(path: &Path)
| 250 | } |
| 251 | } |
| 252 | fn read_nonempty_trimmed(path: &Path) -> Option<String> { |
| 253 | let contents = std::fs::read_to_string(path).ok()?; |
| 254 | let value = contents.trim(); |
| 255 | (!value.is_empty()).then(|| value.to_string()) |
| 256 | } |
| 257 | |
| 258 | /// Load the per-user active gateway name from persistent storage. |
| 259 | /// |
no test coverage detected