Skip to content

Commit

Permalink
more signature fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Aug 21, 2023
1 parent 61e003e commit 042a803
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/resource/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ type DecodedResource[T proto.Message] struct {
Data T
}

func (d *DecodedResource[V, PV]) GetResource() *pbresource.Resource {
func (d *DecodedResource[T]) GetResource() *pbresource.Resource {
if d == nil {
return nil
}

return d.Resource
}

func (d *DecodedResource[V, PV]) GetData() PV {
func (d *DecodedResource[T]) GetData() T {
if d == nil {
return nil
var zero T
return zero
}

return d.Data
Expand Down

0 comments on commit 042a803

Please sign in to comment.