Code Duplication The `emitParams` object is created twice with the same properties in different branches of conditional logic. Consider refactoring to create this object once and use it in both places to reduce redundancy and potential errors in future modifications.
PR Reviewer Guide 🔍
Code Duplication
The `emitParams` object is created twice with the same properties in different branches of conditional logic. Consider refactoring to create this object once and use it in both places to reduce redundancy and potential errors in future modifications.