diff options
| -rw-r--r-- | .golangci.yml | 2 | ||||
| -rw-r--r-- | MAINTAINERS.md | 4 | ||||
| -rw-r--r-- | cloud/pkg/edgecontroller/controller/upstream.go | 2 | ||||
| -rw-r--r-- | staging/src/github.com/kubeedge/beehive/pkg/core/context/context_factory.go | 2 | ||||
| -rw-r--r-- | tests/e2e/utils/config.go | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/.golangci.yml b/.golangci.yml index cd1908964..09eec025f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -51,7 +51,7 @@ linters: - goconst - errcheck - gofmt - - golint + - revive - gosimple - govet - misspell diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 22fbddeae..ef5d7ff86 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -3,10 +3,10 @@ Official list of KubeEdge Maintainers. Please keep the below list sorted in ascending order. - + [GOVERNANCE.md](https://github.com/kubeedge/community/blob/master/GOVERNANCE.md) describes governance guidelines and maintainer responsibilities. - + ## Maintainers | Maintainer | GitHub ID | Affiliation | Email | diff --git a/cloud/pkg/edgecontroller/controller/upstream.go b/cloud/pkg/edgecontroller/controller/upstream.go index 698352c29..2149f41e5 100644 --- a/cloud/pkg/edgecontroller/controller/upstream.go +++ b/cloud/pkg/edgecontroller/controller/upstream.go @@ -273,7 +273,7 @@ func (uc *UpstreamController) updateRuleStatus() { klog.Warningf("message: %s process failure, content marshal err: %s", msg.GetID(), err) continue } - var data []byte = []byte(body) + var data = []byte(body) _, err = uc.crdClient.RulesV1().Rules(namespace).Patch(context.Background(), ruleID, controller.MergePatchType, data, metaV1.PatchOptions{}) if err != nil { klog.Warningf("message: %s process failure, update ruleStatus failed with error: %s, namespace: %s, name: %s", msg.GetID(), err, namespace, ruleID) diff --git a/staging/src/github.com/kubeedge/beehive/pkg/core/context/context_factory.go b/staging/src/github.com/kubeedge/beehive/pkg/core/context/context_factory.go index 44d16ce35..e8058665a 100644 --- a/staging/src/github.com/kubeedge/beehive/pkg/core/context/context_factory.go +++ b/staging/src/github.com/kubeedge/beehive/pkg/core/context/context_factory.go @@ -37,7 +37,7 @@ func init() { messageContext: make(map[string]MessageContext), moduleContextType: make(map[string]string), - groupContextType: make(map[string]string), + groupContextType: make(map[string]string), ctx: ctx, cancel: cancel, diff --git a/tests/e2e/utils/config.go b/tests/e2e/utils/config.go index c23275efd..2ece5f036 100644 --- a/tests/e2e/utils/config.go +++ b/tests/e2e/utils/config.go @@ -68,7 +68,7 @@ func loadConfigJSOMFromPath() *Config { Infof("Failed to get Abs path: %v", err) panic(err) } - var config *Config = &Config{} + var config = &Config{} configFile, err := os.Open(path) if err != nil { panic(err) |
