4
19
Fork
You've already forked scripts
4

Refactor script to remove if-else construct for centering text #2

Merged
rldane merged 1 commit from lpolish/scripts:main into main 2024年07月19日 17:32:24 +02:00
Contributor
Copy link

This PR refactors the script to eliminate the if-else construct by using parameter expansion with a fallback to cat. The key changes include:

  • Simplifying the script to improve readability and efficiency.
  • Maintaining the original functionality with a cleaner approach.

These changes make the script more concise and maintainable.

This PR refactors the script to eliminate the if-else construct by using parameter expansion with a fallback to `cat`. The key changes include: - Simplifying the script to improve readability and efficiency. - Maintaining the original functionality with a cleaner approach. These changes make the script more concise and maintainable.
Refactor script to remove if-else construct for centering text
- Eliminated the if-else construct by using parameter expansion with a fallback to `cat`.
- This simplification maintains functionality while improving code readability and efficiency.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rldane/scripts!2
Reference in a new issue
rldane/scripts
No description provided.
Delete branch "lpolish/scripts:main"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?