fixup: incorrect assumption on img layer need

This commit is contained in:
Vlad Lazar
2024-09-12 23:04:58 +01:00
parent fea1f34f6a
commit 3640824553

View File

@@ -134,8 +134,8 @@ pub(crate) async fn convert(
}
}
if to.img.is_none() {
let (lsn, fut) = from.img.expect("Need an image");
if to.img.is_none() && from.img.is_some() {
let (lsn, fut) = from.img.expect("Has an image");
match fut.await {
Ok(res) => match res {
Ok(bytes) => {