From 473a0f4c78838926bbbce84e755d3e22fc17ebb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sun, 11 Apr 2021 09:28:28 +0200 Subject: [PATCH] Fix gofmt and add it to the list of linters --- Makefile | 2 +- pkg/minikube/perf/result_manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 71a35b448d..719a929f46 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ GOLINT_GOGC ?= 100 # options for lint (golangci-lint) GOLINT_OPTIONS = --timeout 7m \ --build-tags "${MINIKUBE_INTEGRATION_BUILD_TAGS}" \ - --enable goimports,gocritic,golint,gocyclo,misspell,nakedret,stylecheck,unconvert,unparam,dogsled \ + --enable gofmt,goimports,gocritic,golint,gocyclo,misspell,nakedret,stylecheck,unconvert,unparam,dogsled \ --exclude 'variable on range scope.*in function literal|ifElseChain' \ --skip-files "pkg/minikube/translate/translations.go|pkg/minikube/assets/assets.go" diff --git a/pkg/minikube/perf/result_manager.go b/pkg/minikube/perf/result_manager.go index e28da835e1..5c96164b62 100644 --- a/pkg/minikube/perf/result_manager.go +++ b/pkg/minikube/perf/result_manager.go @@ -37,7 +37,7 @@ func newResultManager() *resultManager { func (rm *resultManager) addResult(binary *Binary, test string, r result) { a, ok := rm.results[binary] if !ok { - r := map[string][]*result{test: []*result{&r}} + r := map[string][]*result{test: {&r}} rm.results[binary] = resultWrapper{r} return }