Skip to content

Commit

Permalink
DOM: Remove unnecessary type assertion
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 Aug 7, 2024
1 parent 7f3fb0d commit 9db688b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dom/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func DefaultJsonEncoder(w io.Writer, v interface{}) error {
}

func DefaultNodeMappingFn(n Container) interface{} {
return containerMappingFn(n.(Container))
return containerMappingFn(n)
}

// Serializable interface allows to persist data into provided io.Writer
Expand Down

0 comments on commit 9db688b

Please sign in to comment.