You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: drop redundant types from object instantiations
This PR refactors instantiation expressions to use C# 9 target-typed new, removing redundant type specifications on the right-hand side of declarations. These changes streamline the codebase, reduce verbosity, and improve readability.
- Type can be dropped from the declaration's RHS when explicitly mentioned in the LHS: DeepSource highlighted numerous cases where the explicit type in expressions like `new HttpClient()` or `new List<Deposit>()` was unnecessary because the variable’s type was already known. All such instantiations have been replaced with the concise `new()` syntax, leveraging compiler type inference and ensuring consistent, modern C# style across the project.
> This Autofix was generated by AI. Please review the change before merging.
0 commit comments