From ee06194e1c76ce73b6de7e1fb396fbb7aa4fc8c0 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 cd3c6360878d..8beba3b88ce2 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 }