prevent using assert with argument 'true'
@@ -169,6 +169,7 @@ mod tests {
},
)));
run(runtime.dispatch(&addon_details));
+ assert!(
match runtime
.app
.write()
@@ -179,9 +180,11 @@ mod tests {
.unwrap()
.content
{
- Loadable::Err(_) => assert!(true, "addon errored"),
- _ => panic!("the addon didn't throw error"),
- };
+ Loadable::Err(_) => true,
+ _ => false,
+ },
+ "addon errored"
+ );
}
#[test]
