-
Notifications
You must be signed in to change notification settings - Fork 803
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
Uniform TryGetValue usage #6598
Conversation
src/absil/ilwrite.fs
Outdated
let ok = tbl.dict.TryGetValue(x, &res) | ||
if ok then res | ||
else tbl.AddSharedEntry x | ||
match tbl.dict.TryGetValue(x) with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the parens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@forki Done.
src/utils/HashMultiMap.fs
Outdated
let ok = firstEntries.TryGetValue(y,&res) | ||
if ok then Some(res) else None | ||
match firstEntries.TryGetValue y with | ||
| true, res -> Some(res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the brackets here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KevinRansom That's how it was, fixed now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ncave, yeah I get it, it's the worst part of cleanup PR's. You opt in to fixing all of the rubbish that was there before :-)
Thanks for this. |
Making
TryGetValue
usage more uniform.