Skip to content

Commit

Permalink
Replace golint with revive (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
markusthoemmes authored May 18, 2021
1 parent 1442287 commit 67897f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ linters:
enable:
- asciicheck
- errorlint
- golint
- gosec
- prealloc
- revive
- stylecheck
- unconvert
- unparam
Expand Down
5 changes: 1 addition & 4 deletions apis/duck/v1beta1/destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions leaderelection/chaosduck/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 67897f4

Please sign in to comment.