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

WebUI: clean up code #20728

Merged
merged 3 commits into from Apr 29, 2024
Merged

WebUI: clean up code #20728

merged 3 commits into from Apr 29, 2024

Conversation

Chocobo1
Copy link
Member

@Chocobo1 Chocobo1 commented Apr 19, 2024

I intend to use 'create a merge commit' for merging.

Use proper function for finding match.
Use strict comparison operators.
@Chocobo1 Chocobo1 added the WebUI WebUI-related issues/changes label Apr 19, 2024
@Chocobo1 Chocobo1 added this to the 5.0 milestone Apr 19, 2024
@Chocobo1 Chocobo1 requested a review from a team April 20, 2024 04:21
Piccirello
Piccirello previously approved these changes Apr 20, 2024
Copy link
Member

@Piccirello Piccirello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth enforcing strict equality checking via eslint? https://eslint.org/docs/latest/rules/eqeqeq

@Chocobo1
Copy link
Member Author

Is it worth enforcing strict equality checking via eslint? https://eslint.org/docs/latest/rules/eqeqeq

Of course! I've added 2 more commits.
I've crudely inspected the code and (also crudely) tested it. It works for me so far.

@Chocobo1 Chocobo1 added the Code cleanup Clean up the code while preserving the same outcome label Apr 21, 2024
Copy link
Member

@Piccirello Piccirello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested these changes but they look sensible

@Chocobo1 Chocobo1 merged commit d65d855 into qbittorrent:master Apr 29, 2024
14 checks passed
@Chocobo1 Chocobo1 deleted the webui_state branch April 29, 2024 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code cleanup Clean up the code while preserving the same outcome WebUI WebUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants