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: Remove use of deprecated string scanner API. #901

Merged
merged 3 commits into from
Jun 19, 2023
Merged

Conversation

jlawton
Copy link
Contributor

@jlawton jlawton commented Jun 19, 2023

Goals ⚽

Remove use of deprecated scanHexInt32.

Implementation Details 🚧

While making the change to dataFromHexString it became clear that this method wasn't actually needed. It's there in order to take a hexadecimal string encoding of a hash and re-encode it to a base64, but simply skipping the production of the hex from the data in the first place makes the method unnecessary.

Testing Details 🔍

Tested sha1() method manually.

@coveralls
Copy link

coveralls commented Jun 19, 2023

Coverage Status

coverage: 88.488% (-0.08%) from 88.569% when pulling df2f38a on jl/hash-fix into f46c3c0 on main.

Copy link
Contributor

@arjankowski arjankowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@arjankowski arjankowski merged commit af5f0e5 into main Jun 19, 2023
@arjankowski arjankowski deleted the jl/hash-fix branch June 19, 2023 09:40
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.

3 participants