-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: separate
modifyDate
and shiftDate
functions
The hierarchical switch statements are hard to maintain. The `mode` argument served as a routing param to pick up necessary function behaviour. It's better to get rid of it and to maintain 2 independent functions. Each function can have its own limitations and time unit types.
- Loading branch information
1 parent
3aa1661
commit 1d52f3f
Showing
2 changed files
with
65 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters