chore: Removed unnecessary type casting #1434
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Submit a pull request for this project.
Why?
Related to which issue? No specific issue.
Why we need this pull request? To optimize the code by removing unnecessary type casting, making it cleaner and more understandable.
What is the user story for this pull request? As a developer, I want the code to be as clean and understandable as possible to facilitate future maintenance and updates.
What?
Can you describe this feature in detail? Removed unnecessary type casting in the initialization of DOMPurify.
Who can benefit from it? Developers and contributors who will maintain and update this code in the future.
How?
How?
Do you have a simple description of how this pull request is implemented? Modified the code by removing the as any type casting.