-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
List<PublicKeyCredentialDescriptor>
/IEnumerable<PublicKeyCredentialDescriptor>
to IReadOnlyList<PublicKeyCredentialDescriptor>
#447
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #447 +/- ##
==========================================
+ Coverage 73.88% 73.92% +0.03%
==========================================
Files 99 99
Lines 2711 2711
Branches 445 443 -2
==========================================
+ Hits 2003 2004 +1
Misses 603 603
+ Partials 105 104 -1 ☔ View full report in Codecov by Sentry. |
I would prefer IReadOnlyList to IEnumerable here. |
… IEnumerable<PublicKeyCredentialDescriptor>
List<PublicKeyCredentialDescriptor>
to IEnumerable<PublicKeyCredentialDescriptor>
List<PublicKeyCredentialDescriptor>
/IEnumerable<PublicKeyCredentialDescriptor>
to IReadOnlyList<PublicKeyCredentialDescriptor>
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.
Aside from my question about not using null
or different init values, It's Approved 👍
@iamcarbon Do you have any comments regarding the allocations? |
Looks good to me! 👍 |
Fixes #191.
The proposal in the issue was to change
AllowCredentials
toList<PublicKeyCredentialDescriptor>
, I preferred to do the opposite because I think it's better to expose interfaces.There are other parameters that deserve to be changed to
IEnumerable
as well, such asstoredDevicePublicKeys
:fido2-net-lib/Src/Fido2/IFido2.cs
Line 20 in 15263ca
I could do a PR for the others if this one is approved and merged.