diff options
author | Linus Groh <mail@linusgroh.de> | 2020-05-27 18:47:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-27 19:51:52 +0200 |
commit | 99e775cee353f7b74007ed8b1fcb8203750aeebb (patch) | |
tree | e91d45ee819ffa6a50f7726172f752adcafe2067 /Libraries | |
parent | 39b5494aeba180e8d56477919c47eba030803ec8 (diff) | |
download | serenity-99e775cee353f7b74007ed8b1fcb8203750aeebb.zip |
LibJS: Reformat ArrayPrototype.cpp
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibJS/Runtime/ArrayPrototype.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Libraries/LibJS/Runtime/ArrayPrototype.cpp b/Libraries/LibJS/Runtime/ArrayPrototype.cpp index 3d269071fc..1c8a95035c 100644 --- a/Libraries/LibJS/Runtime/ArrayPrototype.cpp +++ b/Libraries/LibJS/Runtime/ArrayPrototype.cpp @@ -706,9 +706,9 @@ Value ArrayPrototype::splice(Interpreter& interpreter) this_object->put(to, from); if (interpreter.exception()) return {}; - } - else + } else { this_object->delete_property(to); + } } for (size_t i = initial_length; i > new_length; --i) @@ -725,9 +725,9 @@ Value ArrayPrototype::splice(Interpreter& interpreter) this_object->put(to, from); if (interpreter.exception()) return {}; - } - else + } else { this_object->delete_property(to); + } } } @@ -746,7 +746,7 @@ Value ArrayPrototype::splice(Interpreter& interpreter) Value ArrayPrototype::fill(Interpreter& interpreter) { - auto *this_object = interpreter.this_value().to_object(interpreter); + auto* this_object = interpreter.this_value().to_object(interpreter); if (!this_object) return {}; @@ -791,4 +791,3 @@ Value ArrayPrototype::fill(Interpreter& interpreter) } } - |