Skip to content

valast: remove redundant type  #18

Open
@rizalgowandy

Description

@rizalgowandy

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.
Screenshot_2021-01-31_17-57-23

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions