Remove outdated TODO

This commit is contained in:
asonix 2020-06-06 22:21:42 -05:00
parent 18e7aa8d06
commit b7a66c7863

View file

@ -106,7 +106,7 @@ impl UploadManager {
}) })
.await?; .await?;
// -- CHECK IF ANY OTHER ALIASES EXIST // -- CHECK IF ANY OTHER ALIASES EXIST --
let db = self.inner.db.clone(); let db = self.inner.db.clone();
let (start, end) = alias_key_bounds(&hash); let (start, end) = alias_key_bounds(&hash);
let any_aliases = web::block(move || { let any_aliases = web::block(move || {
@ -238,8 +238,6 @@ impl UploadManager {
return Ok(Some(path)); return Ok(Some(path));
} }
// TODO: validate image before saving
// -- WRITE NEW FILE -- // -- WRITE NEW FILE --
let mut real_path = self.image_dir(); let mut real_path = self.image_dir();
real_path.push(name); real_path.push(name);