Skip to content

Commit 9c4d0ab

Browse files
committed
refactor: private field
1 parent ef141aa commit 9c4d0ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class Service {
317317
return item
318318
}
319319

320-
private async updateOrPatch(
320+
async #updateOrPatch(
321321
name: string,
322322
id: string,
323323
body: Omit<Item, 'id'> = {},
@@ -342,15 +342,15 @@ export class Service {
342342
id: string,
343343
body: Omit<Item, 'id'> = {},
344344
): Promise<Item | undefined> {
345-
return this.updateOrPatch(name, id, body, false)
345+
return this.#updateOrPatch(name, id, body, false)
346346
}
347347

348348
async patch(
349349
name: string,
350350
id: string,
351351
body: Omit<Item, 'id'> = {},
352352
): Promise<Item | undefined> {
353-
return this.updateOrPatch(name, id, body, true)
353+
return this.#updateOrPatch(name, id, body, true)
354354
}
355355

356356
async destroy(

0 commit comments

Comments
 (0)