We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8c68a commit 45c741eCopy full SHA for 45c741e
core/src/avm1/globals/object.rs
@@ -92,7 +92,7 @@ pub fn add_property<'gc>(
92
}
93
94
95
- return Ok(false.into());
+ Ok(false.into())
96
97
98
/// Implements `Object.prototype.hasOwnProperty`
core/src/string/avm_string.rs
@@ -127,10 +127,10 @@ impl PartialEq for AvmString<'_> {
127
fn eq(&self, other: &Self) -> bool {
128
if Gc::ptr_eq(self.0, other.0) {
129
// Fast accept for identical strings.
130
- return true;
+ true
131
} else if self.0.is_interned() && other.0.is_interned() {
132
// Fast reject for distinct interned strings.
133
- return false;
+ false
134
} else {
135
// Fallback case.
136
self.as_wstr() == other.as_wstr()
0 commit comments