all: rename variables with lowercase-l/uppercase-I
See http://go/no-ell Signed-off-by: Alex Chan <alexc@tailscale.com> Updates #cleanup Change-Id: I8c976b51ce7a60f06315048b1920516129cc1d5d
This commit is contained in:
@@ -352,12 +352,12 @@ type ServiceMonitor struct {
|
||||
|
||||
type Labels map[string]LabelValue
|
||||
|
||||
func (l Labels) Parse() map[string]string {
|
||||
if l == nil {
|
||||
func (lb Labels) Parse() map[string]string {
|
||||
if lb == nil {
|
||||
return nil
|
||||
}
|
||||
m := make(map[string]string, len(l))
|
||||
for k, v := range l {
|
||||
m := make(map[string]string, len(lb))
|
||||
for k, v := range lb {
|
||||
m[k] = string(v)
|
||||
}
|
||||
return m
|
||||
|
||||
@@ -99,7 +99,7 @@ func Test_conn_Read(t *testing.T) {
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
l := zl.Sugar()
|
||||
log := zl.Sugar()
|
||||
tc := &fakes.TestConn{}
|
||||
sr := &fakes.TestSessionRecorder{}
|
||||
rec := tsrecorder.New(sr, cl, cl.Now(), true, zl.Sugar())
|
||||
@@ -110,7 +110,7 @@ func Test_conn_Read(t *testing.T) {
|
||||
c := &conn{
|
||||
ctx: ctx,
|
||||
Conn: tc,
|
||||
log: l,
|
||||
log: log,
|
||||
hasTerm: true,
|
||||
initialCastHeaderSent: make(chan struct{}),
|
||||
rec: rec,
|
||||
|
||||
Reference in New Issue
Block a user