Skip to content

Commit

Permalink
DOM: Cleanup - inline variable initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Kosegi <richard.kosegi@gmail.com>
  • Loading branch information
rkosegi committed Jul 19, 2024
1 parent 33cc3eb commit 4241e28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dom/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ func flattenContainer(node Container, path string, ret *map[string]Leaf) {

func (c *containerImpl) Flatten() map[string]Leaf {
ret := make(map[string]Leaf)
path := ""
flattenContainer(c, path, &ret)
flattenContainer(c, "", &ret)
return ret
}

Expand Down

0 comments on commit 4241e28

Please sign in to comment.