From cea1892c2e97ffaeb5a95ec78e7f5ad7cc26e196 Mon Sep 17 00:00:00 2001 From: Trevor Sears Date: Fri, 10 Sep 2021 17:14:28 -0400 Subject: [PATCH] Removed straggling `console.log` statements. --- ts/semaphore.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ts/semaphore.ts b/ts/semaphore.ts index 5f172e7..3bb037e 100644 --- a/ts/semaphore.ts +++ b/ts/semaphore.ts @@ -89,26 +89,18 @@ export class Semaphore { } - console.log(`a`); - let lockID: string; // Generate a unique ID for the new lock. do lockID = crypto.randomBytes(16).toString("hex"); while (this.outstandingLocks.hasOwnProperty(lockID)); - console.log(`b`); - // Add the new lock to the internal map of locks. this.outstandingLocks[lockID] = new SemaphoreLock(lockID); - console.log(`c`); - // Make the lock delete itself once it is relinquished. this.outstandingLocks[lockID].then((): boolean => delete this.outstandingLocks[lockID]); - console.log(`d`); - return this.outstandingLocks[lockID]; }