Skip to content

Commit 32d7c68

Browse files
committed
fix modernize linter error
Signed-off-by: Tim Ramlot <[email protected]>
1 parent a492379 commit 32d7c68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/datareading.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ func jsonUnmarshalStrict(data []byte, v any) error {
9292
type GatheredResource struct {
9393
// Resource is a reference to a k8s object that was found by the informer
9494
// should be of type unstructured.Unstructured, raw Object
95-
Resource any `json:"resource"`
96-
DeletedAt Time `json:"deleted_at,omitempty"`
95+
Resource any
96+
DeletedAt Time
9797
}
9898

9999
func (v GatheredResource) MarshalJSON() ([]byte, error) {
@@ -116,7 +116,7 @@ func (v GatheredResource) MarshalJSON() ([]byte, error) {
116116
func (v *GatheredResource) UnmarshalJSON(data []byte) error {
117117
var tmpResource struct {
118118
Resource *unstructured.Unstructured `json:"resource"`
119-
DeletedAt Time `json:"deleted_at,omitempty"`
119+
DeletedAt Time `json:"deleted_at"`
120120
}
121121

122122
d := json.NewDecoder(bytes.NewReader(data))

0 commit comments

Comments
 (0)