From 40785151aa66596619a8026c7a2b7fe3359356db Mon Sep 17 00:00:00 2001 From: Roman Iakovlev Date: Tue, 17 Dec 2024 17:47:40 +0100 Subject: [PATCH] Fix code style issues --- ghcrawler/providers/queuing/storageQueue.js | 2 +- ghcrawler/providers/storage/storageDocStore.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ghcrawler/providers/queuing/storageQueue.js b/ghcrawler/providers/queuing/storageQueue.js index 2c8bd0f..7525698 100644 --- a/ghcrawler/providers/queuing/storageQueue.js +++ b/ghcrawler/providers/queuing/storageQueue.js @@ -32,7 +32,7 @@ class StorageQueue { // No specific unsubscribe logic for Azure Queue Storage } - async push(requests, _option) { + async push(requests) { requests = Array.isArray(requests) ? requests : [requests] return Promise.all( requests.map( diff --git a/ghcrawler/providers/storage/storageDocStore.js b/ghcrawler/providers/storage/storageDocStore.js index 0e05236..a4967a9 100644 --- a/ghcrawler/providers/storage/storageDocStore.js +++ b/ghcrawler/providers/storage/storageDocStore.js @@ -104,7 +104,7 @@ class AzureStorageDocStore { let entryCount = 0 const properties = await this.containerClient.getProperties() properties.blobCount - for await (const _blob of this.containerClient.listBlobsFlat()) { + for await (const {} of this.containerClient.listBlobsFlat()) { entryCount++ } memoryCache.put(key, entryCount, 60000)