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(manage/git.lua): improved readability, removed redundant else-branches, and replaced an unnecessary loop with the condition. #1833

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

palandovalex
Copy link

Description

The logic of the code has not changed, but its visual perception will be improved, in view of eliminating unnecessary "else", replacing the for loop with an if construct (the body of the loop could only be executed once), as well as using elseif to reduce indentation.

@palandovalex palandovalex changed the title Refactor manage/git.lua refactor: manage/git.lua Dec 5, 2024
@palandovalex palandovalex changed the title refactor: manage/git.lua refactor(manage/git.lua): Improved readability, removed redundant else-branches, and replaced an unnecessary loop with the condition. Dec 5, 2024
@palandovalex palandovalex changed the title refactor(manage/git.lua): Improved readability, removed redundant else-branches, and replaced an unnecessary loop with the condition. refactor(manage/git.lua): improved readability, removed redundant else-branches, and replaced an unnecessary loop with the condition. Dec 5, 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