-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ConfigCommand): simplify argToValue function
- Remove unnecessary conditional checks for 'null', 'true', 'false', and numeric values. - Retain the JSON decoding functionality for valid JSON strings. - Return the decoded value or the original argument if not a valid JSON.
- Loading branch information
ityaozm@gmail.com
committed
Oct 1, 2024
1 parent
d96b0ce
commit 624fa8c
Showing
1 changed file
with
22 additions
and
20 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