pkg: address golangci var-naming issues

Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
Ivan Valdes
2024-03-06 16:22:42 -08:00
parent 82925537e0
commit d98ff0d4ff
5 changed files with 17 additions and 17 deletions

View File

@@ -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
}