Skip to content

Commit 6f33928

Browse files
committed
Whoops
1 parent 9428df4 commit 6f33928

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/github/gh-cli/command"
99
"github.com/github/gh-cli/update"
1010
"github.com/github/gh-cli/utils"
11+
"github.com/mattn/go-isatty"
1112
"github.com/mgutz/ansi"
1213
"github.com/mitchellh/go-homedir"
1314
)
@@ -45,9 +46,8 @@ func main() {
4546
}
4647

4748
func shouldCheckForUpdate() bool {
48-
// errFd := os.Stderr.Fd()
49-
// return updaterEnabled != "" && (isatty.IsTerminal(errFd) || isatty.IsCygwinTerminal(errFd))
50-
return true
49+
errFd := os.Stderr.Fd()
50+
return updaterEnabled != "" && (isatty.IsTerminal(errFd) || isatty.IsCygwinTerminal(errFd))
5151
}
5252

5353
func checkForUpdate(currentVersion string) (*update.ReleaseInfo, error) {

0 commit comments

Comments
 (0)