Replace golint with revive (#2126)

This commit is contained in:
Markus Thömmes 2021-05-18 15:10:15 +02:00 committed by GitHub
parent 1442287e59
commit 67897f4ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -10,9 +10,9 @@ linters:
enable:
- asciicheck
- errorlint
- golint
- gosec
- prealloc
- revive
- stylecheck
- unconvert
- unparam

View File

@ -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 {

View File

@ -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() {