Skip to content

Conversation

sungam3r
Copy link
Owner

@sungam3r sungam3r commented Jan 3, 2024

No description provided.

@sungam3r
Copy link
Owner Author

sungam3r commented Jan 3, 2024

Ping @pavel-usachev for review.

Comment on lines +21 to +31
foreach (var namedBinding in bindings)
{
if (namedBinding.ServiceType != typeof(TService))
continue;

if (namedBinding.Name.Equals(name))
return namedBinding;

if (namedBinding.Name.Equals(NamedBinding.DefaultName))
binding = namedBinding;
}

Check notice

Code scanning / CodeQL

Missed opportunity to use Where

This foreach loop [implicitly filters its target sequence](1) - consider filtering the sequence explicitly using '.Where(...)'.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (98a891a) 100.00% compared to head (f3bbba7) 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #151   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines          269       304   +35     
  Branches        40        48    +8     
=========================================
+ Hits           269       304   +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sungam3r sungam3r merged commit 71a8553 into master Jan 4, 2024
@sungam3r sungam3r deleted the default branch January 4, 2024 05:50
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