Skip to content

Commit

Permalink
Revert "added secret length to every secret attributes"
Browse files Browse the repository at this point in the history
This reverts commit 91226b4.
  • Loading branch information
dryoni committed Aug 8, 2020
1 parent 91226b4 commit aa1e52b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions detect_secrets/core/potential_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def __init__(

def set_secret(self, secret):
self.secret_hash = self.hash_secret(secret)
self.secret_len = len(secret)

# Note: Originally, we never wanted to keep the secret value in memory,
# after finding it in the codebase. However, to support verifiable
Expand Down Expand Up @@ -87,7 +86,6 @@ def json(self):
'filename': self.filename,
'line_number': self.lineno,
'hashed_secret': self.secret_hash,
'secret_len': self.secret_len,
'is_verified': self.is_verified,
}

Expand Down

0 comments on commit aa1e52b

Please sign in to comment.