fix compile warning

This commit is contained in:
blek 2023-11-02 19:01:21 +10:00
parent 67ba2308b7
commit 6b4ddb8756
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ pub async fn upload(form: FormData, ip: Option<IpAddr>, state: SharedState) -> R
}
if let Some(pass) = state.config.files.upload_pass {
let mut pass_valid = false;
let pass_valid: bool;
if let Some(upass) = formdata.instancepass {
pass_valid = upass == pass;
} else {
@ -85,7 +85,7 @@ pub async fn upload(form: FormData, ip: Option<IpAddr>, state: SharedState) -> R
"File uploaded successfully.\n",
"It is available via this link:\n\n",
"{}/upload/{}"
"{}/upload/{}\n"
),
state.env.instanceurl,
urlencoding::encode(