Skip to content

Commit ec5c83c

Browse files
committed
lint
1 parent ea3e294 commit ec5c83c

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

lambdas/authorizer/src/__tests__/index.test.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@ jest.mock("aws-embedded-metrics", () => {
1717
};
1818

1919
return {
20-
metricScope: jest.fn(
21-
(handler) =>
22-
async () => {
23-
const wrapped = handler(metricsMock);
24-
if (typeof wrapped === "function") {
25-
await wrapped();
26-
}
27-
},
28-
),
20+
metricScope: jest.fn((handler) => async () => {
21+
const wrapped = handler(metricsMock);
22+
if (typeof wrapped === "function") {
23+
await wrapped();
24+
}
25+
}),
2926
__metricsMock: metricsMock,
3027
};
3128
});

lambdas/authorizer/src/authorizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async function checkCertificateExpiry(
123123
await metricScope((metrics: MetricsLogger) => async () => {
124124
deps.logger.warn(`APIM Certificated expiry in ${expiry} days`);
125125
metrics.setNamespace(
126-
process.env.AWS_LAMBDA_FUNCTION_NAME || "authorizer",
126+
process.env.AWS_LAMBDA_FUNCTION_NAME || "authorizer",
127127
);
128128
metrics.putMetric("apim-client-certificate-near-expiry", expiry, "Count");
129129
})();

0 commit comments

Comments
 (0)