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

Refactored loop logic to simplify selection of employee and removed redundant if conditions, enhancing code readability. #44

Closed
wants to merge 2 commits into from

Conversation

HoussemLahmar
Copy link

Issue: Assignment 21: confusing code style #41

Changes made:

Removed the unnecessary if condition inside the loop by using a ternary operator to select the appropriate employee based on the loop index.
Simplified the loop logic by directly assigning the employee pointer inside the loop initialization. This reduces redundancy and improves readability.

@HoussemLahmar HoussemLahmar closed this by deleting the head repository Apr 4, 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.

1 participant