Remove the active gateway file (used when destroying the active gateway).
()
| 389 | |
| 390 | /// Remove the active gateway file (used when destroying the active gateway). |
| 391 | pub fn clear_active_gateway() -> Result<()> { |
| 392 | let path = user_active_gateway_path()?; |
| 393 | if path.exists() { |
| 394 | std::fs::remove_file(&path) |
| 395 | .into_diagnostic() |
| 396 | .wrap_err_with(|| format!("failed to remove {}", path.display()))?; |
| 397 | } |
| 398 | Ok(()) |
| 399 | } |
| 400 | |
| 401 | /// Remove gateway metadata file. |
| 402 | pub fn remove_gateway_metadata(name: &str) -> Result<()> { |
no test coverage detected