From 215093272e252d453de9b2d733b49970840f8e87 Mon Sep 17 00:00:00 2001 From: Luc Street Date: Thu, 22 Aug 2019 11:21:16 -0700 Subject: [PATCH] Remove redundant check for Gitlab token --- functions/source/GitPullS3/lambda_function.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/functions/source/GitPullS3/lambda_function.py b/functions/source/GitPullS3/lambda_function.py index 7b85978..b18534b 100644 --- a/functions/source/GitPullS3/lambda_function.py +++ b/functions/source/GitPullS3/lambda_function.py @@ -134,9 +134,6 @@ def lambda_handler(event, context): for net in ipranges: if ip in net: secure = True - if 'X-Gitlab-Token' in event['params']['header'].keys(): - if event['params']['header']['X-Gitlab-Token'] in apikeys: - secure = True if 'X-Git-Token' in event['params']['header'].keys(): if event['params']['header']['X-Git-Token'] in apikeys: secure = True