Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Revert "Use a pointer"
Browse files Browse the repository at this point in the history
This reverts commit feefb7c.
  • Loading branch information
Timer committed Oct 11, 2018
1 parent feefb7c commit 6031edf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/kubernetes/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (o baseObject) Bytes() []byte {
return o.bytes
}

func (o *baseObject) UpdateBytes(newBytes []byte) {
func (o baseObject) UpdateBytes(newBytes []byte) {
o.bytes = newBytes
}

Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (r rsc) Bytes() []byte {
return r.bytes
}

func (r *rsc) UpdateBytes(newBytes []byte) {
func (r rsc) UpdateBytes(newBytes []byte) {
r.bytes = newBytes
}

Expand Down
2 changes: 1 addition & 1 deletion sync/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (rs rsc) Bytes() []byte {
return []byte{}
}

func (rs *rsc) UpdateBytes([]byte) {}
func (rs rsc) UpdateBytes([]byte) {}

func (rs rsc) ResourceID() flux.ResourceID {
return flux.MakeResourceID(rs.Meta.Namespace, rs.Kind, rs.Meta.Name)
Expand Down

0 comments on commit 6031edf

Please sign in to comment.