From 0483e2a0df19a44cac2d9b6520d76a502072c6eb Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Thu, 20 Mar 2025 19:39:10 -0400 Subject: [PATCH] change `some` to `status` in wrap --- src/rt/rfwfs/main.ts | 2 +- src/rt/rfwfs/wrap.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rt/rfwfs/main.ts b/src/rt/rfwfs/main.ts index 376fcfa..1bd4653 100644 --- a/src/rt/rfwfs/main.ts +++ b/src/rt/rfwfs/main.ts @@ -119,7 +119,7 @@ class RfwfsDirectory { if (read_write_access(this.entry.permissions)) { const pop_find = directory_search(this.directory, file_name) if (pop_find) { - this.directory.splice(pop_find.some, 1) + this.directory.splice(pop_find.status, 1) return wrap_entry(ReadStatus.Ok, pop_find.result) } return wrap_entry(ReadStatus.NotFound) diff --git a/src/rt/rfwfs/wrap.ts b/src/rt/rfwfs/wrap.ts index 7067c30..f59b88a 100644 --- a/src/rt/rfwfs/wrap.ts +++ b/src/rt/rfwfs/wrap.ts @@ -6,14 +6,14 @@ type WrapBSearch = WrapResult type WrapResultNone = WrapResult interface WrapResult { - /** The resulting value if `U` is a success */ + /** The resulting value if `U` is a success status */ readonly result: T, - /** Represents some arbitrary extra value, usually a success status */ - readonly some: U + /** Represents some arbitrary extra value, usually a status */ + readonly status: U, } function wrap(result: T, some: U): WrapResult { - return { result: result, some: some } + return { result: result, status: some } } function wrap_bsearch(index: number, result: T): WrapBSearch {