From 6f339285b5b96f61851e294e7cb64bf03bfcc386 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 11 Dec 2019 16:48:48 -0800 Subject: [PATCH] Whoops --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9d08f3e62..f09edb18d 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "github.com/github/gh-cli/command" "github.com/github/gh-cli/update" "github.com/github/gh-cli/utils" + "github.com/mattn/go-isatty" "github.com/mgutz/ansi" "github.com/mitchellh/go-homedir" ) @@ -45,9 +46,8 @@ func main() { } func shouldCheckForUpdate() bool { - // errFd := os.Stderr.Fd() - // return updaterEnabled != "" && (isatty.IsTerminal(errFd) || isatty.IsCygwinTerminal(errFd)) - return true + errFd := os.Stderr.Fd() + return updaterEnabled != "" && (isatty.IsTerminal(errFd) || isatty.IsCygwinTerminal(errFd)) } func checkForUpdate(currentVersion string) (*update.ReleaseInfo, error) {