mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:45:08 +00:00
Everywhere: Remove needless copies of Error / ErrorOr instances
Either take the underlying objects with release_* methods or move() the instances around.
This commit is contained in:
parent
52687814ea
commit
4a916cd379
28 changed files with 69 additions and 77 deletions
|
@ -53,7 +53,7 @@ ErrorOr<void> Heap::open()
|
|||
if (file_size > 0) {
|
||||
if (auto error_maybe = read_zero_block(); error_maybe.is_error()) {
|
||||
m_file = nullptr;
|
||||
return error_maybe.error();
|
||||
return error_maybe.release_error();
|
||||
}
|
||||
} else {
|
||||
initialize_zero_block();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue