removed runtime compare for windows

The MousttrapHelpText will only be validated in cobra when running on
windows.
This commit is contained in:
RozzaysRed 2020-10-09 16:43:20 -04:00
parent 1075d4f415
commit 15e1ad02d3

View file

@ -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 <command> <subcommand> [flags]",