-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve sanitizeValue function for readability
Refactored the `sanitizeValue` function to enhance readability and maintainability. Changes include: Renamed `conditions` to `conditionList` for clarity. Adjusted formatting for better readability. Updated error messages for consistency and clarity. The function continues to validate the `value` and `type` parameters, logging errors and returning `null` if validations fail.
- Loading branch information
1 parent
8c31332
commit a2bf6e4
Showing
2 changed files
with
12 additions
and
10 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