fmt
This commit is contained in:
parent
d715d94b6d
commit
a7b588da97
2 changed files with 48 additions and 48 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue