mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
chore: fix some comments (#2903)
Signed-off-by: jinjiadu <jinjiadu@aliyun.com>
This commit is contained in:
parent
2940a3514d
commit
911ea4d678
2 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
|
|||
}
|
||||
}
|
||||
|
||||
// By appending resutls in the outer loop we can reduce false positives if there are multiple
|
||||
// By appending results in the outer loop we can reduce false positives if there are multiple
|
||||
// combinations of secrets and IDs found.
|
||||
if len(apiSecretMatches) > 0 {
|
||||
results = append(results, s1)
|
||||
|
|
|
@ -63,7 +63,7 @@ type Result struct {
|
|||
verificationError error
|
||||
}
|
||||
|
||||
// SetVerificationError is the only way to set a verification error. Any sensetive values should be passed-in as secrets to be redacted.
|
||||
// SetVerificationError is the only way to set a verification error. Any sensitive values should be passed-in as secrets to be redacted.
|
||||
func (r *Result) SetVerificationError(err error, secrets ...string) {
|
||||
if err != nil {
|
||||
r.verificationError = redactSecrets(err, secrets...)
|
||||
|
|
Loading…
Reference in a new issue