From cd43a978fa1617e25f2e5bacea57925d3cdf54c0 Mon Sep 17 00:00:00 2001 From: xuzhonghu Date: Tue, 2 Apr 2019 17:40:45 +0800 Subject: [PATCH] fix gofmt --- pkg/controllers/job/job_controller.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkg/controllers/job/job_controller.go b/pkg/controllers/job/job_controller.go index 1e07787ecd7..d80b27d5512 100644 --- a/pkg/controllers/job/job_controller.go +++ b/pkg/controllers/job/job_controller.go @@ -59,9 +59,9 @@ type Controller struct { vkClients *vkver.Clientset kbClients *kbver.Clientset - jobInformer vkbatchinfo.JobInformer - pgInformer kbinfo.PodGroupInformer - cmdInformer vkcoreinfo.CommandInformer + jobInformer vkbatchinfo.JobInformer + pgInformer kbinfo.PodGroupInformer + cmdInformer vkcoreinfo.CommandInformer sharedInformers informers.SharedInformerFactory // A store of jobs @@ -219,12 +219,11 @@ func (cc *Controller) Run(stopCh <-chan struct{}) { } func (cc *Controller) worker() { - for cc.processNextReq(){ + for cc.processNextReq() { } } - -func (cc *Controller) processNextReq()bool { +func (cc *Controller) processNextReq() bool { obj, shutdown := cc.queue.Get() if shutdown { glog.Errorf("Fail to pop item from queue") @@ -266,4 +265,4 @@ func (cc *Controller) processNextReq()bool { cc.queue.Forget(req) return true -} \ No newline at end of file +}