Skip to content

Ensure valid_hash? returns a Boolean#227

Merged
tenderlove merged 1 commit intobcrypt-ruby:masterfrom
nathanKramer:fix/valid-hash-return-type
Jul 21, 2020
Merged

Ensure valid_hash? returns a Boolean#227
tenderlove merged 1 commit intobcrypt-ruby:masterfrom
nathanKramer:fix/valid-hash-return-type

Conversation

@nathanKramer
Copy link
Contributor

I noticed that valid_hash? returns either nil or 0.
Since the docs list valid_hash? as returning a Boolean, I thought this might be a bug.

@nathanKramer nathanKramer force-pushed the fix/valid-hash-return-type branch from d1ec908 to 212799f Compare May 26, 2020 01:28
I noticed that valid_hash? returns either nil or 0, in the usual cases.
Since the docs list valid_hash? as returning a Boolean, I thought this might be a bug.

at the very least I suspect think this would be less confusing.
@nathanKramer nathanKramer force-pushed the fix/valid-hash-return-type branch from 212799f to eb567cb Compare May 26, 2020 02:01
@tenderlove tenderlove merged commit a4528cf into bcrypt-ruby:master Jul 21, 2020
@nathanKramer nathanKramer deleted the fix/valid-hash-return-type branch July 26, 2020 04:31
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