chore: appease clippy
This commit is contained in:
parent
901d84b2cf
commit
043f7cdea7
|
@ -867,8 +867,7 @@ impl<'gc> TObject<'gc> for ClassObject<'gc> {
|
||||||
let func = Executable::from_method(call_handler, scope, None, Some(self));
|
let func = Executable::from_method(call_handler, scope, None, Some(self));
|
||||||
|
|
||||||
func.exec(receiver, arguments, activation, self.into())
|
func.exec(receiver, arguments, activation, self.into())
|
||||||
} else {
|
} else if arguments.len() == 1 {
|
||||||
if arguments.len() == 1 {
|
|
||||||
arguments[0].coerce_to_type(activation, self.inner_class_definition())
|
arguments[0].coerce_to_type(activation, self.inner_class_definition())
|
||||||
} else {
|
} else {
|
||||||
Err(Error::AvmError(argument_error(
|
Err(Error::AvmError(argument_error(
|
||||||
|
@ -881,7 +880,6 @@ impl<'gc> TObject<'gc> for ClassObject<'gc> {
|
||||||
)?))
|
)?))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fn construct(
|
fn construct(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in New Issue