This commit is contained in:
Andras Schmelczer 2026-04-23 21:14:29 +01:00
commit a7b588da97
2 changed files with 48 additions and 48 deletions

View file

@ -4,7 +4,6 @@ use anyhow::Result;
use log::{debug, info};
use sqlx::sqlite::SqliteConnection;
pub async fn find_first_available_path(
vault_id: &VaultId,
sanitized_relative_path: &str,

View file

@ -34,7 +34,10 @@ pub fn sanitize_path(path: &str) -> Result<String> {
.collect::<Vec<_>>()
.join("/");
ensure!(!result.is_empty(), "Relative path is empty after sanitization");
ensure!(
!result.is_empty(),
"Relative path is empty after sanitization"
);
Ok(result)
}