[keel] Remove redundant move
All checks were successful
Build / build (push) Successful in 2m33s

This commit is contained in:
Gary Talent 2024-05-28 21:33:19 -05:00
parent ec45ffb794
commit b968ec8a91

View File

@ -32,7 +32,7 @@ static ox::Result<ox::Buffer> readFileBuff(ox::StringView path) noexcept {
ox::Buffer buff(size);
file.seekg(0, std::ios::beg);
file.read(buff.data(), static_cast<std::streamsize>(buff.size()));
return std::move(buff);
return buff;
} catch (std::ios_base::failure const&e) {
oxErrorf("Could not read OxFS file: {}", e.what());
return OxError(2, "Could not read OxFS file");