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

Refactor to add strict type comparisons and remove unnecessary else blocks #343

Merged
merged 2 commits into from
Apr 20, 2024

Conversation

matt-fidd
Copy link
Contributor

No description provided.

} else {
return null;
if (!confirmed) {
return { error: 'invalid-password' };
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only functional change in this PR, if the password is incorrect the server will return invalid-password, not null.

Copy link
Member

@MatissJanis MatissJanis left a comment

Choose a reason for hiding this comment

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

Thanks!

@trafico-bot trafico-bot bot added ✅ Approved Pull Request has been approved and can be merged and removed 🔍 Ready for Review labels Apr 20, 2024
@MatissJanis MatissJanis merged commit 4ae654d into actualbudget:master Apr 20, 2024
6 checks passed
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved Pull Request has been approved and can be merged labels Apr 20, 2024
@matt-fidd matt-fidd deleted the small-refactor branch April 22, 2024 07:33
joewashear007 pushed a commit to joewashear007/actual-server that referenced this pull request Apr 22, 2024
MMichotte pushed a commit to MMichotte/actual-server that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants