Skip to content

Commit

Permalink
remove duplicate call of term.GetSize
Browse files Browse the repository at this point in the history
  • Loading branch information
talwat committed Feb 28, 2023
1 parent 17ae25c commit 44ece3a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions progressbar.go
Expand Up @@ -1091,9 +1091,6 @@ var termWidth = func() (width int, err error) {
if err == nil {
return width, nil
}
width, _, err = term.GetSize(int(os.Stderr.Fd()))
if err == nil {
return width, nil
}

return 0, err
}

0 comments on commit 44ece3a

Please sign in to comment.