Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the benefit of these lines? #2

Closed
signorrayan opened this issue Nov 25, 2021 · 1 comment
Closed

What is the benefit of these lines? #2

signorrayan opened this issue Nov 25, 2021 · 1 comment

Comments

@signorrayan
Copy link
Contributor

Could you please tell me what is the benefit of lines 59, 60 and 62?
Is it for future options or I'm wrong.

if record[key] == "":
    continue
@adulau
Copy link
Member

adulau commented Nov 25, 2021

It's to avoid the insertion of empty field record. It's quite common to have tools producing empty hashes for fuzzy hashing when the files are small. It's the case for SSDEEP and TLSH.

@adulau adulau closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants