lint: add nolintlint and clean up nolint directives (#9738)

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
Milas Bowman 2022-08-09 16:43:58 -04:00 committed by GitHub
parent 12ad0fddab
commit 27227a8824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 41 additions and 39 deletions

View file

@ -164,14 +164,12 @@ func (w *ttyWriter) print() {
continue
}
line := lineText(event, "", terminalWidth, statusPadding, runtime.GOOS != "windows")
//nolint: errcheck
fmt.Fprint(w.out, line)
numLines++
for _, v := range w.eventIDs {
ev := w.events[v]
if ev.ParentID == event.ID {
line := lineText(ev, " ", terminalWidth, statusPadding, runtime.GOOS != "windows")
//nolint: errcheck
fmt.Fprint(w.out, line)
numLines++
}