From c6e59a2d5c3067895a4e5ffa642193a849aa5222 Mon Sep 17 00:00:00 2001 From: gioroddev Date: Mon, 2 Dec 2024 13:25:32 -0500 Subject: [PATCH] fixing lint --- helpers/aws/functions.js | 3 ++- plugins/aws/lambda/lambdaNetworkExposure.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helpers/aws/functions.js b/helpers/aws/functions.js index c46b46eac4..69209ea991 100644 --- a/helpers/aws/functions.js +++ b/helpers/aws/functions.js @@ -1243,7 +1243,8 @@ var getApiIdFromArn = function(arn) { if (!arn) return null; const matches = arn.match(/arn:aws:execute-api:[^:]+:[^:]+:([^/]+)/); return matches ? matches[1] : null; -} +}; + var checkNetworkExposure = function(cache, source, subnets, securityGroups, elbs, region, results, resource) { var internetExposed = ''; var isSubnetPrivate = false; diff --git a/plugins/aws/lambda/lambdaNetworkExposure.js b/plugins/aws/lambda/lambdaNetworkExposure.js index 7d2dfe4b23..850330bffd 100644 --- a/plugins/aws/lambda/lambdaNetworkExposure.js +++ b/plugins/aws/lambda/lambdaNetworkExposure.js @@ -52,7 +52,7 @@ module.exports = { let lambdaResource = { functionUrlConfig: getFunctionUrlConfig, functionPolicy: getPolicy - } + }; let internetExposed = helpers.checkNetworkExposure(cache, source, [], [], [], region, results, lambdaResource);