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

[Bug]: Strange condition on UserInfo #5977

Open
2 tasks done
valadas opened this issue Feb 21, 2024 · 3 comments
Open
2 tasks done

[Bug]: Strange condition on UserInfo #5977

valadas opened this issue Feb 21, 2024 · 3 comments

Comments

@valadas
Copy link
Contributor

valadas commented Feb 21, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

image
This condition will always be false after refactoring in #5971

Steps to reproduce?

This condition should never be entered as it will always be false, this is just a note to remove this block at some point in time.

Current Behavior

No response

Expected Behavior

No response

Relevant log output

No response

Anything else?

No response

Affected Versions

9.13.3 (alpha)

What browsers are you seeing the problem on?

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct
@valadas valadas added this to the Future: Patch milestone Feb 21, 2024
@valadas
Copy link
Contributor Author

valadas commented Feb 22, 2024

No, basically this is the user profile module, it used to be used by both users and admins but now admins have a new experience in the persona bar. So this code was all refactored to no longer user User and only UserInfo and that block of code is basically to remove, it is right now always false and this is just a reminder for code cleanup at some point.

@Mostafa-Moafi
Copy link
Contributor

No, basically this is the user profile module, it used to be used by both users and admins but now admins have a new experience in the persona bar. So this code was all refactored to no longer user User and only UserInfo and that block of code is basically to remove, it is right now always false and this is just a reminder for code cleanup at some point.

Do you just have to remove the condition?

@valadas
Copy link
Contributor Author

valadas commented May 4, 2024

@Mostafa-Moafi basically the whole if block can go away as one will never be both a superuser and not a superuser, so that code will never ever run anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants