2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00
This commit is contained in:
asonix 2023-08-28 18:49:30 -05:00
parent 1f4d4f167d
commit 1271ff2cc7

View file

@ -110,8 +110,7 @@ pub(crate) fn build_chain(
let (mut path, args) = let (mut path, args) =
args.iter() args.iter()
.fold(Ok((PathBuf::default(), vec![])), |inner, (name, value)| { .try_fold((PathBuf::default(), vec![]), |inner, (name, value)| {
if let Ok(inner) = inner {
parse!(inner, Identity, name, value); parse!(inner, Identity, name, value);
parse!(inner, Thumbnail, name, value); parse!(inner, Thumbnail, name, value);
parse!(inner, Resize, name, value); parse!(inner, Resize, name, value);
@ -119,9 +118,6 @@ pub(crate) fn build_chain(
parse!(inner, Blur, name, value); parse!(inner, Blur, name, value);
Err(Error::from(UploadError::ParsePath)) Err(Error::from(UploadError::ParsePath))
} else {
inner
}
})?; })?;
path.push(ext); path.push(ext);