Skip to content

Commit 5e29da5

Browse files
committed
Fix warnings
Signed-off-by: Kim Tsao <[email protected]>
1 parent bf3b6b6 commit 5e29da5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: pkg/apis/workspaces/v1alpha1/union_implementation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func visitUnion(union interface{}, visitor interface{}) (err error) {
3434
}
3535

3636
func simplifyUnion(union Union, visitorType reflect.Type) {
37-
normalizeUnion(union, visitorType)
37+
_ = normalizeUnion(union, visitorType)
3838
*union.discriminator() = ""
3939
}
4040

Diff for: pkg/apis/workspaces/v1alpha2/union_implementation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func visitUnion(union interface{}, visitor interface{}) (err error) {
3434
}
3535

3636
func simplifyUnion(union Union, visitorType reflect.Type) {
37-
normalizeUnion(union, visitorType)
37+
_ = normalizeUnion(union, visitorType)
3838
*union.discriminator() = ""
3939
}
4040

Diff for: pkg/utils/unions/normalize.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func (n *normalizer) Struct(s reflect.Value) error {
1616
if addr.CanInterface() {
1717
i := addr.Interface()
1818
if u, ok := i.(dw.Union); ok {
19-
u.Normalize()
19+
_ = u.Normalize()
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)