golang format tools (#637)

Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
/assign mattmoor
This commit is contained in:
mattmoor-sockpuppet 2019-09-06 07:26:05 -07:00 committed by Knative Prow Robot
parent 75da3911c0
commit 014d54e62f
3 changed files with 5 additions and 5 deletions

View File

@ -18,6 +18,7 @@ package coveragecalculator
import (
"strings"
"k8s.io/apimachinery/pkg/util/sets"
)

View File

@ -17,14 +17,14 @@ limitations under the License.
package view
import (
"strings"
"html/template"
"strings"
"knative.dev/pkg/test/webhook-apicoverage/coveragecalculator"
)
type HtmlDisplayData struct {
TypeCoverages []coveragecalculator.TypeCoverage
TypeCoverages []coveragecalculator.TypeCoverage
CoverageNumbers *coveragecalculator.CoverageValues
}
@ -32,7 +32,7 @@ type HtmlDisplayData struct {
func GetHTMLDisplay(coverageData []coveragecalculator.TypeCoverage, coverageValues *coveragecalculator.CoverageValues) (string, error) {
htmlData := HtmlDisplayData{
TypeCoverages: coverageData,
TypeCoverages: coverageData,
CoverageNumbers: coverageValues,
}
@ -50,7 +50,6 @@ func GetHTMLDisplay(coverageData []coveragecalculator.TypeCoverage, coverageValu
return buffer.String(), nil
}
// GetHTMLCoverageValuesDisplay is a helper method to display coverage values inside a HTML table.
func GetHTMLCoverageValuesDisplay(coverageValues *coveragecalculator.CoverageValues) (string, error) {

View File

@ -121,7 +121,7 @@ func New(
admissionControllers map[string]AdmissionController,
logger *zap.SugaredLogger,
ctx func(context.Context) context.Context,
) (*Webhook, error) {
) (*Webhook, error) {
if opts.StatsReporter == nil {
reporter, err := NewStatsReporter()