Merge pull request #753 from peco/fix-ignored-errors

very minor tidying
This commit is contained in:
lestrrat 2026-02-20 21:03:38 +09:00 committed by GitHub
commit 01956a4c51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -940,6 +940,9 @@ func (l *BasicLayout) DrawScreen(state *Peco, options *hub.DrawOptions) {
}
if err := l.screen.Flush(); err != nil {
if pdebug.Enabled {
pdebug.Printf("screen.Flush error: %s", err)
}
return
}
}

View file

@ -132,7 +132,7 @@ func (s *Source) Setup(ctx context.Context, state *Peco) {
}
if closer, ok := s.in.(io.Closer); ok {
s.inClosed = true
_ = closer.Close()
closer.Close() // best-effort cleanup; error is not actionable
}
}()