Skip to content

Commit

Permalink
Update paste.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
tessus authored Apr 3, 2024
1 parent ad3d599 commit dd7b93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paste.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl Paste {
.unwrap_or_default()
.to_string();
let file_path = util::glob_match_file(path.clone())
.map_err(|_| IoError::new(IoErrorKind::Other, String::from("path is not valid")))?;
.await.map_err(|_| IoError::new(IoErrorKind::Other, String::from("path is not valid")))?;
if file_path.is_file() && file_path.exists() {
return Err(error::ErrorConflict("file already exists\n"));
}
Expand Down

0 comments on commit dd7b93f

Please sign in to comment.