Remove duplicated code

This commit is contained in:
Edwin Cheng 2019-05-26 02:41:00 +08:00
parent 816147c4b5
commit 90764fc54b

View File

@ -58,10 +58,6 @@ where
return Err(ExpandError::ConversionError);
}
if tree_sink.roots.len() != 1 {
return Err(ExpandError::ConversionError);
}
Ok(tree_sink.inner.finish())
}