Address some lint errors (#351)

* Fix lint error: Remove unused receiver name

* Fix lint error: consistent receiver name

* Update apis/duck/v1alpha1/conditions_types.go
Update apis/duck/v1alpha1/retired_targetable_types.go
Update apis/duck/v1alpha1/legacy_targetable_types.go

Co-Authored-By: trshafer <tshafer@google.com>
This commit is contained in:
Thomas Shafer 2019-04-05 08:52:57 -07:00 committed by Knative Prow Robot
parent 71f46d3165
commit d5db385fcc
5 changed files with 10 additions and 10 deletions

View File

@ -250,7 +250,7 @@ type DoesntMarshal struct{}
var _ json.Marshaler = (*DoesntMarshal)(nil)
func (_ *DoesntMarshal) MarshalJSON() ([]byte, error) {
func (*DoesntMarshal) MarshalJSON() ([]byte, error) {
return nil, errors.New("what did you expect?")
}
@ -270,7 +270,7 @@ type PatchSpec struct {
var _ Implementable = (*Patchable)(nil)
var _ Populatable = (*Patch)(nil)
func (_ *Patchable) GetFullType() Populatable {
func (*Patchable) GetFullType() Populatable {
return &Patch{}
}

View File

@ -65,7 +65,7 @@ var _ duck.Populatable = (*AddressableType)(nil)
var _ apis.Listable = (*AddressableType)(nil)
// GetFullType implements duck.Implementable
func (_ *Addressable) GetFullType() duck.Populatable {
func (*Addressable) GetFullType() duck.Populatable {
return &AddressableType{}
}
@ -80,7 +80,7 @@ func (t *AddressableType) Populate() {
}
// GetListType implements apis.Listable
func (r *AddressableType) GetListType() runtime.Object {
func (*AddressableType) GetListType() runtime.Object {
return &AddressableTypeList{}
}

View File

@ -159,7 +159,7 @@ var _ duck.Populatable = (*KResource)(nil)
var _ apis.Listable = (*KResource)(nil)
// GetFullType implements duck.Implementable
func (_ *Conditions) GetFullType() duck.Populatable {
func (*Conditions) GetFullType() duck.Populatable {
return &KResource{}
}
@ -187,7 +187,7 @@ func (t *KResource) Populate() {
}
// GetListType implements apis.Listable
func (r *KResource) GetListType() runtime.Object {
func (*KResource) GetListType() runtime.Object {
return &KResourceList{}
}

View File

@ -67,7 +67,7 @@ var _ duck.Populatable = (*LegacyTarget)(nil)
var _ apis.Listable = (*LegacyTarget)(nil)
// GetFullType implements duck.Implementable
func (_ *LegacyTargetable) GetFullType() duck.Populatable {
func (*LegacyTargetable) GetFullType() duck.Populatable {
return &LegacyTarget{}
}
@ -80,7 +80,7 @@ func (t *LegacyTarget) Populate() {
}
// GetListType implements apis.Listable
func (r *LegacyTarget) GetListType() runtime.Object {
func (*LegacyTarget) GetListType() runtime.Object {
return &LegacyTargetList{}
}

View File

@ -67,7 +67,7 @@ var _ duck.Populatable = (*Target)(nil)
var _ apis.Listable = (*Target)(nil)
// GetFullType implements duck.Implementable
func (_ *Targetable) GetFullType() duck.Populatable {
func (*Targetable) GetFullType() duck.Populatable {
return &Target{}
}
@ -82,7 +82,7 @@ func (t *Target) Populate() {
}
// GetListType implements apis.Listable
func (r *Target) GetListType() runtime.Object {
func (*Target) GetListType() runtime.Object {
return &TargetList{}
}