mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Annotate why we ignore error
This commit is contained in:
committed by
Christian Rocha
parent
91cfe19018
commit
3afda07603
@@ -14,7 +14,7 @@ func (p *Program) initInput() error {
|
||||
if f, ok := p.input.(*os.File); ok {
|
||||
c, err := console.ConsoleFromFile(f)
|
||||
if err != nil {
|
||||
return nil
|
||||
return nil //nolint:nilerr // ignore error, this was just a test
|
||||
}
|
||||
p.console = c
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user