Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint: fix structcheck issue #833

Merged
merged 2 commits into from
May 28, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/scheduler/actions/allocate/allocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

type Action struct {
ssn *framework.Session
_ *framework.Session
daixiang0 marked this conversation as resolved.
Show resolved Hide resolved
}

func New() *Action {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/actions/backfill/backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

type Action struct {
ssn *framework.Session
_ *framework.Session
}

func New() *Action {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/actions/enqueue/enqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var (
)

type Action struct {
ssn *framework.Session
_ *framework.Session
}

func New() *Action {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/actions/preempt/preempt.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
)

type Action struct {
ssn *framework.Session
_ *framework.Session
}

func New() *Action {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/actions/reclaim/reclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

type Action struct {
ssn *framework.Session
_ *framework.Session
}

func New() *Action {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type SchedulerCache struct {

podInformer infov1.PodInformer
nodeInformer infov1.NodeInformer
nsInformer infov1.NamespaceInformer
_ infov1.NamespaceInformer
daixiang0 marked this conversation as resolved.
Show resolved Hide resolved
podGroupInformerV1beta1 vcinformerv1.PodGroupInformer
queueInformerV1beta1 vcinformerv1.QueueInformer
pvInformer infov1.PersistentVolumeInformer
Expand Down