From 51276e9c75e917aa314d95cccf3179ffd077611a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramirez=20Vargas=2C=20Jos=C3=A9=20Pablo?= Date: Fri, 19 Sep 2025 18:26:22 -0600 Subject: [PATCH] fix(Semaphore): Remove alien line in constructor --- src/sync/Semaphore.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sync/Semaphore.ts b/src/sync/Semaphore.ts index ff894be..a8d54bf 100644 --- a/src/sync/Semaphore.ts +++ b/src/sync/Semaphore.ts @@ -12,7 +12,7 @@ export class SemaphoreInternal extends SyncObject { #disabled; constructor(identifier: number, capacity: number, createDisabled: boolean) { if (capacity <= 0 || !Number.isInteger(capacity)) { - throw new Error("A semaphore's capacity can only be a postive integer."); + throw new Error("A semaphore's capacity can only be a positive integer."); } super(identifier, createDisabled ? 0 : capacity); this.#capacity = capacity; @@ -91,7 +91,6 @@ export async function acquireAsync(identifierData: IdentifierData, token: Token, export class Semaphore extends SemaphoreInternal { constructor(capacity: number, createDisabled: boolean = false) { super(semaphoreIdentityData[0], capacity, createDisabled); - const x = Semaphore.acquire(this.token, 1000); } /** * Acquires a slot from the specified semaphore's token.