From 15e1ad02d3b685ace5e75944dc94219b106dc924 Mon Sep 17 00:00:00 2001 From: RozzaysRed Date: Fri, 9 Oct 2020 16:43:20 -0400 Subject: [PATCH] removed runtime compare for windows The MousttrapHelpText will only be validated in cobra when running on windows. --- pkg/cmd/root/root.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/cmd/root/root.go b/pkg/cmd/root/root.go index 472c4fcac..5048027f8 100644 --- a/pkg/cmd/root/root.go +++ b/pkg/cmd/root/root.go @@ -2,7 +2,6 @@ package root import ( "net/http" - "runtime" "github.com/MakeNowJust/heredoc" "github.com/cli/cli/api" @@ -26,9 +25,7 @@ import ( ) func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command { - if runtime.GOOS == "windows" { - cobra.MousetrapHelpText = "" - } + cobra.MousetrapHelpText = "" cmd := &cobra.Command{ Use: "gh [flags]",