aboutsummaryrefslogtreecommitdiffstats
path: root/src/file_upload.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/file_upload.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_upload.rs b/src/file_upload.rs
index 231999f..68371e8 100644
--- a/src/file_upload.rs
+++ b/src/file_upload.rs
@@ -176,7 +176,7 @@ pub async fn upload_file(
let upload_allowed = conf.allowed_upload_dir.is_empty() ||
conf.allowed_upload_dir.iter().any(|s| upload_path.starts_with(s));
- if !(upload_allowed) {
+ if !upload_allowed {
return Err(ContextualError::InvalidPathError("Not allowed to upload to this path".to_string()));
}