Skip to content
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

Remove unnecessary check in the AccessRule::matchRole() #20106

Closed
wants to merge 1 commit into from

Conversation

neoka4
Copy link

@neoka4 neoka4 commented Jan 21, 2024

Q A
Is bugfix? ✔️

Copy link

codecov bot commented Jan 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0027227) 48.02% compared to head (2794e25) 48.03%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #20106   +/-   ##
=======================================
  Coverage   48.02%   48.03%           
=======================================
  Files         445      445           
  Lines       43892    43890    -2     
=======================================
+ Hits        21080    21082    +2     
+ Misses      22812    22808    -4     

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

@samdark samdark requested review from a team January 22, 2024 07:38
@bizley
Copy link
Member

bizley commented Jan 22, 2024

Which bug does it fix? What is the problem here?

@schmunk42
Copy link
Contributor

From looking into the code, $roleParams is not set before, so this if() is always true.

@bizley
Copy link
Member

bizley commented Jan 22, 2024

I think it was added because it's in the foreach loop, so to not repeat the call for each item.

@bizley
Copy link
Member

bizley commented Jan 24, 2024

Closing it, since the current code looks ok. Feel free to write here if it needs to be reopen.

@bizley bizley closed this Jan 24, 2024
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