-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
1 parent
d96b0ce
commit 8f36a3c
Showing
2 changed files
with
167 additions
and
71 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.