mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
docs: fix lint issues in examples and tutorials (#759)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b2d2ac6504
commit
b80eb8303b
@@ -132,12 +132,12 @@ func (m model) View() string {
|
||||
|
||||
func main() {
|
||||
if os.Getenv("HELP_DEBUG") != "" {
|
||||
if f, err := tea.LogToFile("debug.log", "help"); err != nil {
|
||||
f, err := tea.LogToFile("debug.log", "help")
|
||||
if err != nil {
|
||||
fmt.Println("Couldn't open a file for logging:", err)
|
||||
os.Exit(1)
|
||||
} else {
|
||||
defer f.Close()
|
||||
}
|
||||
defer f.Close() // nolint:errcheck
|
||||
}
|
||||
|
||||
if _, err := tea.NewProgram(newModel()).Run(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user