mirror of https://github.com/knative/pkg.git
Replace golint with revive (#2126)
This commit is contained in:
parent
1442287e59
commit
67897f4ec2
|
|
@ -10,9 +10,9 @@ linters:
|
|||
enable:
|
||||
- asciicheck
|
||||
- errorlint
|
||||
- golint
|
||||
- gosec
|
||||
- prealloc
|
||||
- revive
|
||||
- stylecheck
|
||||
- unconvert
|
||||
- unparam
|
||||
|
|
|
|||
|
|
@ -136,10 +136,7 @@ func (dest *Destination) GetRef() *corev1.ObjectReference {
|
|||
if dest.Ref != nil {
|
||||
return dest.Ref
|
||||
}
|
||||
if ref := dest.deprecatedObjectReference(); ref != nil {
|
||||
return ref
|
||||
}
|
||||
return nil
|
||||
return dest.deprecatedObjectReference()
|
||||
}
|
||||
|
||||
func validateDestinationRef(ref corev1.ObjectReference) *apis.FieldError {
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ type components map[string]sets.String
|
|||
var (
|
||||
disabledComponents kflag.StringSet
|
||||
disabledComponentsRegex kflag.StringSet
|
||||
tributePeriod time.Duration = 20 * time.Second
|
||||
tributeFactor = 2.0
|
||||
tributePeriod = 20 * time.Second
|
||||
tributeFactor = 2.0
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue