Make golint happy

This commit is contained in:
Christian Muehlhaeuser
2020-08-22 12:34:03 +02:00
parent 82e641ef63
commit d26cfb6b38
2 changed files with 2 additions and 4 deletions

View File

@@ -116,7 +116,6 @@ func (r *renderer) flush() {
// Clear any lines we painted in the last render.
if r.linesRendered > 0 {
for i := r.linesRendered - 1; i > 0; i-- {
// Check if we should skip rendering for this line. Clearing the
// line before painting is part of the standard rendering routine.
if _, exists := r.ignoreLines[i]; !exists {
@@ -211,7 +210,6 @@ func (r *renderer) setIgnoredLines(from int, to int) {
moveCursor(out, r.linesRendered, 0) // put cursor back
r.out.Write(out.Bytes())
}
}
// clearIgnoredLines returns control of any ignored lines to the standard