mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
Remove a useless local variable.
This commit is contained in:
@@ -4753,9 +4753,7 @@ class CGDOMJSProxyHandler_hasOwn(CGAbstractExternMethod):
|
||||
return indexed + """\
|
||||
let expando = RootedObject::new(cx, get_expando_object(proxy));
|
||||
if !expando.ptr.is_null() {
|
||||
let mut b = true;
|
||||
let ok = JS_HasPropertyById(cx, expando.handle(), id, &mut b);
|
||||
*bp = b;
|
||||
let ok = JS_HasPropertyById(cx, expando.handle(), id, bp);
|
||||
if !ok || *bp {
|
||||
return ok;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user