[ox] Make Error its own type, not dependent on Integer and make nodiscard
This commit is contained in:
@@ -235,7 +235,7 @@ Error FileStoreTemplate<size_t>::decLinks(InodeId_t id) {
|
||||
if (item.valid()) {
|
||||
item->links--;
|
||||
if (item->links == 0) {
|
||||
remove(item);
|
||||
oxReturnError(remove(item));
|
||||
}
|
||||
return OxError(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user