Skip to content

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
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