By DeepSource
All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Security
Style
Type check
Redundant type assertion could be avoided in cases where from and type asserted to are identical.
func f(w io.Writer) interface{} { return w.(interface{}) }
func f(w io.Writer) interface{} { return w }