1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

improve code quality (#2128)

* Fix inefficient string comparison

* Fix unnecessary calls to Printf

* Canonicalize header key

* Replace `t.Sub(time.Now())` with `time.Until`

* Remove unnecessary blank (_) identifier

* Remove unnecessary use of slice

* Remove unnecessary comparison with bool
This commit is contained in:
Shubhendra Singh Chauhan
2021-02-25 14:00:35 +05:30
committed by GitHub
parent 0f0ace1a44
commit 26b859c4f9
9 changed files with 10 additions and 10 deletions

View File

@ -158,7 +158,7 @@ func TestConfigWatcherDirtyOverrite(t *testing.T) {
}
runtime.Gosched()
for i, _ := range ss {
for i := range ss {
k := fmt.Sprintf("key%d", i)
v := fmt.Sprintf("val%d", i)
equalS(t, conf.Get(k).String(""), v)