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

Incorrect Logic in StatusFor(DateTime date) #69

Open
EduardKrutii opened this issue Feb 9, 2025 · 0 comments
Open

Incorrect Logic in StatusFor(DateTime date) #69

EduardKrutii opened this issue Feb 9, 2025 · 0 comments

Comments

@EduardKrutii
Copy link

The StatusFor(DateTime date) method contains redundant checks and does not correctly handle cases where the given date matches the endDate. The unnecessary conditions make the logic harder to follow and can lead to incorrect status evaluations, potentially causing unexpected behavior in the system.

Link to file - https://github.com/CodelyTV/refactoring-code_smells-design_patterns/blob/main/examples/csharp/csharp-booking-01_base/src/Booking/Booking.cs

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

No branches or pull requests

1 participant