Fix issues found by golangci v1.22.2 (#13568)

Этот коммит содержится в:
Ben Schumacher
2020-01-14 10:08:51 +01:00
коммит произвёл GitHub
родитель 2d9e85e82a
Коммит 6e9e849871
3 изменённых файлов: 9 добавлений и 26 удалений

Просмотреть файл

@@ -10,11 +10,11 @@ import (
"go/format"
"go/parser"
"go/token"
"html/template"
"io/ioutil"
"os"
"path"
"strings"
"text/template"
)
func main() {
@@ -253,8 +253,12 @@ func (s *{{$.Name}}{{$substoreName}}Store) {{$index}}({{$element.Params | joinPa
success = "true"
}
s.Root.Metrics.ObserveStoreMethodDuration("{{$substoreName}}Store.{{$index}}", success, elapsed)
{{ with ($element.Results | genResultsVars) -}}
}
return {{$element.Results | genResultsVars}}
return {{ . }}
{{- else -}}
}
{{- end }}
}
{{end}}
{{end}}