mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 11:47:35 +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
|
@ -531,7 +531,7 @@ ErrorOr<void, File::CopyError> File::copy_directory(DeprecatedString const& dst_
|
|||
DeprecatedString::formatted("{}/{}", src_path, filename),
|
||||
RecursionMode::Allowed, link, AddDuplicateFileMarker::Yes, preserve_mode);
|
||||
if (result.is_error())
|
||||
return result.error();
|
||||
return result.release_error();
|
||||
}
|
||||
|
||||
auto my_umask = umask(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue