src/go/plugin/go.d/modules/scaleio/client/server.go
Method MockScaleIOAPIServer.handleQuerySelectedStatistics
has 5 return statements (exceeds 4 allowed). Open
Open
func (s MockScaleIOAPIServer) handleQuerySelectedStatistics(w http.ResponseWriter, r *http.Request) {
if _, pass, ok := r.BasicAuth(); !ok || pass != s.Token {
w.WriteHeader(http.StatusUnauthorized)
msg := fmt.Sprintf("token got/expected: %s/%s", pass, s.Token)
writeAPIError(w, msg)