From 66c80b86660fb4d1f80af488a2f589b1917cc7aa Mon Sep 17 00:00:00 2001 From: Nelson Taveras <4562733+nvtaveras@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:28:05 -0400 Subject: [PATCH] chore: ci linter --- package.json | 4 ++-- src/index.ts | 2 +- src/parse-transaction-receipts.ts | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a7943a8..8b630af 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "prestart": "tsc", "start": "NODE_ENV=development functions-framework --target=watchdogNotifier", "test": "curl -H \"Content-Type: application/json\" -d @src/proposal-created.fixture.json localhost:8080", - "test:healthcheck": "curl -H \"Content-Type: application/json\" -d @src/health-check.fixture.json localhost:8080", - "test-in-prod": "./test-deployed-function.sh" + "test-in-prod": "./test-deployed-function.sh", + "test:healthcheck": "curl -H \"Content-Type: application/json\" -d @src/health-check.fixture.json localhost:8080" }, "dependencies": { "@google-cloud/functions-framework": "^3.4.0", diff --git a/src/index.ts b/src/index.ts index 2a9eb18..563d44c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,7 +23,7 @@ export const watchdogNotifier: HttpFunction = async ( break; case "MedianUpdated": // Acts a health check/heartbeat for the service, as it's a frequently emitted event - console.info("[HealthCheck]: Block " + parsedEvent.block); + console.info("[HealthCheck]: Block", parsedEvent.block); break; default: console.warn("Unknown event type:", parsedEvent.event); diff --git a/src/parse-transaction-receipts.ts b/src/parse-transaction-receipts.ts index 0720977..c9e32b0 100644 --- a/src/parse-transaction-receipts.ts +++ b/src/parse-transaction-receipts.ts @@ -66,6 +66,7 @@ export default function parseTransactionReceipts( txHash: log.transactionHash, }); } + // eslint-disable-next-line no-empty } catch {} try { @@ -85,6 +86,7 @@ export default function parseTransactionReceipts( txHash: log.transactionHash, }); } + // eslint-disable-next-line no-empty } catch {} } }