We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I have two contacts with the same name, using function find() will return one of the contacts randomly, which is not easy to debug.
find()
We should throw an exception when function find() return more than one value.
The text was updated successfully, but these errors were encountered:
Agree. PR is welcome.
Sorry, something went wrong.
Instead of throw, I'm now considering to use a log.warn() instead.
log.warn()
Because sometimes be able to just using the first find result will be very convienence.
It's a good idea, I will change then.
We can set the level to warn or info. which one do you think is better?
I think warn is better, because it can cause more attention.
lijiarui
No branches or pull requests
When I have two contacts with the same name, using function
find()
will return one of the contacts randomly, which is not easy to debug.We should throw an exception when function
find()
return more than one value.The text was updated successfully, but these errors were encountered: