diff --git a/pre_commit_hooks/detect_aws_credentials.py b/pre_commit_hooks/detect_aws_credentials.py index 5019fa4..cab4ca4 100644 --- a/pre_commit_hooks/detect_aws_credentials.py +++ b/pre_commit_hooks/detect_aws_credentials.py @@ -43,8 +43,6 @@ def get_aws_secrets_from_json(json_credentials_file: str) -> set[str]: secret access keys. """ aws_credentials_file_path = os.path.expanduser(json_credentials_file) - if not os.path.exists(aws_credentials_file_path): - return set() with open(aws_credentials_file_path) as f: try: