autogold
autogold copied to clipboard
valast: remove redundant type
Description
One of the built-in Goland linter gives warning about the redundant type. It would be nice if the generated result doesn't contain redundant fields. Help the code become cleaner.
Problem
Redundant type
Inspection info: Reports redundant types in composite literals.
For example:
[][]int{[]int{1}, []int{2}}
can be simplified to:
[][]int {{1}, {2}}
.
Example in Goland
The grey-out fields are redundant types.

Totally agree, and plan to look into fixing this soon. Thanks for reporting!