chore: remove incorrect space before nolint directives

This commit is contained in:
Christian Muehlhaeuser 2022-09-27 09:55:32 +02:00
parent 5c8eb85b69
commit b404baff60
1 changed files with 3 additions and 3 deletions

6
tea.go
View File

@ -313,7 +313,7 @@ func (p *Program) StartReturningModel() (Model, error) {
return p.initialModel, err return p.initialModel, err
} }
defer f.Close() // nolint:errcheck defer f.Close() //nolint:errcheck
p.input = f p.input = f
@ -336,7 +336,7 @@ func (p *Program) StartReturningModel() (Model, error) {
return p.initialModel, err return p.initialModel, err
} }
defer f.Close() // nolint:errcheck defer f.Close() //nolint:errcheck
p.input = f p.input = f
} }
@ -431,7 +431,7 @@ func (p *Program) StartReturningModel() (Model, error) {
} else { } else {
defer close(p.readLoopDone) defer close(p.readLoopDone)
} }
defer p.cancelReader.Close() // nolint:errcheck defer p.cancelReader.Close() //nolint:errcheck
if f, ok := p.output.TTY().(*os.File); ok && isatty.IsTerminal(f.Fd()) { if f, ok := p.output.TTY().(*os.File); ok && isatty.IsTerminal(f.Fd()) {
// Get the initial terminal size and send it to the program. // Get the initial terminal size and send it to the program.