HLE/FS: Corrected some style concerns.
This commit is contained in:
parent
95380d8950
commit
3aa42627a3
8 changed files with 12 additions and 14 deletions
|
@ -308,11 +308,8 @@ ResultVal<Kernel::SharedPtr<File>> OpenFileFromArchive(ArchiveHandle archive_han
|
|||
return ERR_INVALID_HANDLE;
|
||||
|
||||
auto backend = archive->OpenFile(path, mode);
|
||||
if (backend.Failed()) {
|
||||
if (backend.Failed())
|
||||
return backend.Code();
|
||||
return ResultCode(ErrorDescription::FS_NotFound, ErrorModule::FS,
|
||||
ErrorSummary::NotFound, ErrorLevel::Status);
|
||||
}
|
||||
|
||||
auto file = Kernel::SharedPtr<File>(new File(backend.MoveFrom(), path));
|
||||
return MakeResult<Kernel::SharedPtr<File>>(std::move(file));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue