From ec5bc3996e3abbdb56494ccb2b4115d976022dcc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 31 Dec 2015 13:25:04 +0100 Subject: fix complaints from vet diff --git a/src/helsinki.at/rhimportd/ctrlWebSocket.go b/src/helsinki.at/rhimportd/ctrlWebSocket.go index 9549311..7f4ae0d 100644 --- a/src/helsinki.at/rhimportd/ctrlWebSocket.go +++ b/src/helsinki.at/rhimportd/ctrlWebSocket.go @@ -180,7 +180,7 @@ func webSocketProgress(step int, stepName string, progress float64, userdata int } c := userdata.(chan<- rhimport.ProgressData) select { - case c <- rhimport.ProgressData{step, stepName, progress}: + case c <- rhimport.ProgressData{Step: step, StepName: stepName, Progress: progress}: default: } return true @@ -327,6 +327,4 @@ func webSocketHandler(conf *rhimport.Config, rddb *rhimport.RdDbChan, sessions * reqchan <- *reqdata } } - - return } -- cgit v0.10.2