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

comparer: exit earily if old/new contents are empty #66

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

bastelfreak
Copy link
Member

Previously we called validate_encoding() to force the old/new strings
to be UTF8. Afterwards we exit if one (or both) of the strings are
nil. If they are actuall nil, validate_encoding() will fail.
Hence it makes sense to move the return statement above the
validate_encoding() calls.

@bastelfreak bastelfreak requested a review from alexjfisher June 8, 2022 10:36
Previously we called `validate_encoding()` to force the old/new strings
to be UTF8. Afterwards we exit if one (or both) of the strings are
`nil`. If they are actuall `nil`, `validate_encoding()` will fail.
Hence it makes sense to move the return statement above the
`validate_encoding()` calls.
@bastelfreak bastelfreak added the bug Something isn't working label Jun 8, 2022
@bastelfreak bastelfreak merged commit 5f229a2 into voxpupuli:master Jun 8, 2022
@bastelfreak bastelfreak deleted the compare branch June 8, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants