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

Fix input/output file comparison when signing #393

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

bkrochta
Copy link
Contributor

Stat doesn't return ErrExist error, so this line is always false. We also don't need any stats for the output file, so we can just try to open the file, and continue the comparison with the input file if there is no error opening it.

Stat doesn't return ErrExist error, so this line is always false. We
also don't need any stats for the output file, so we can just try to
open the file, and continue the comparison with the input file if
there is no error opening it.
@Foxboron
Copy link
Owner

Thanks! I plan on removing all stat calls and just use open directly at some point.

@Foxboron Foxboron merged commit da388a1 into Foxboron:master Oct 28, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants