1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

fix: fix ci tool (#1803)

* fix: fix ci tool
This commit is contained in:
haiyux
2022-01-31 08:50:31 +08:00
committed by GitHub
parent 34d0cccefd
commit 86b8b6c366
3 changed files with 6 additions and 8 deletions
+5 -4
View File
@@ -57,10 +57,11 @@ linters-settings:
lll: lll:
line-length: 160 line-length: 160
gomnd: gomnd:
settings: # don't include the "operation", "argument" and "assign"
mnd: checks:
# don't include the "operation", "argument" and "assign" - case
checks: case,condition,return - condition
- return
goconst: goconst:
ignore-tests: true ignore-tests: true
gocyclo: gocyclo:
+1 -3
View File
@@ -21,9 +21,7 @@ type customChangeListener struct {
logger log.Logger logger log.Logger
} }
func (c *customChangeListener) onChange( func (c *customChangeListener) onChange(namespace string, changes map[string]*storage.ConfigChange) []*config.KeyValue {
namespace string, changes map[string]*storage.ConfigChange,
) []*config.KeyValue {
kv := make([]*config.KeyValue, 0, 2) kv := make([]*config.KeyValue, 0, 2)
next := make(map[string]interface{}) next := make(map[string]interface{})
-1
View File
@@ -1,2 +1 @@
./contrib/config/apollo