remove unused code

This commit is contained in:
collin 2021-04-12 13:06:06 -07:00 committed by Protryon
parent a9ee01b418
commit da0c7b86c4

View File

@ -265,7 +265,6 @@ fn emit_errors<T: PartialEq + ToString + serde::de::DeserializeOwned>(
let expected_output: Option<String> =
expected_output.map(|x| serde_yaml::from_value(x).expect("test expectation deserialize failed"));
if let Some(expected_output) = expected_output.as_deref() {
// if expected_output.is_some() && err != expected_output.as_deref().unwrap() {
if err != expected_output {
// invalid output
return Some(TestError::UnexpectedError {