mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg: address golangci var-naming issues
Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
@@ -32,7 +32,7 @@ import (
|
||||
"github.com/creack/pty"
|
||||
)
|
||||
|
||||
const DEBUG_LINES_TAIL = 40
|
||||
const debugLinesTail = 40
|
||||
|
||||
var (
|
||||
ErrProcessRunning = fmt.Errorf("process is still running")
|
||||
@@ -218,7 +218,7 @@ func (ep *ExpectProcess) ExpectFunc(ctx context.Context, f func(string) bool) (s
|
||||
}
|
||||
}
|
||||
|
||||
lastLinesIndex := len(ep.lines) - DEBUG_LINES_TAIL
|
||||
lastLinesIndex := len(ep.lines) - debugLinesTail
|
||||
if lastLinesIndex < 0 {
|
||||
lastLinesIndex = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user