From 7f92b0d5b4ab4925ee1021ce936b8625f8b20102 Mon Sep 17 00:00:00 2001 From: Dominic Della Valle Date: Fri, 25 Nov 2016 20:43:43 -0500 Subject: [PATCH] Replace OS check License: MIT Signed-off-by: Dominic Della Valle --- commands/cli/parse.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/cli/parse.go b/commands/cli/parse.go index 135a2e280f6b..f91457fc3a66 100644 --- a/commands/cli/parse.go +++ b/commands/cli/parse.go @@ -6,7 +6,6 @@ import ( "os" "path" "path/filepath" - "runtime" "sort" "strings" @@ -262,7 +261,7 @@ const msgStdinInfo = "ipfs: Reading from %s; send Ctrl-d to stop." func parseArgs(inputs []string, stdin *os.File, argDefs []cmds.Argument, recursive, hidden bool, root *cmds.Command) ([]string, []files.File, error) { // ignore stdin on Windows - if runtime.GOOS == "windows" { + if osh.IsWindows() { stdin = nil }