@cryptotaxi247 / kubo / commits / 934a07373

Replace OS check

License: MIT Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>

Dominic Della Valle committed Nov 25, 2016 at 20:43 UTC 934a073732f0701d6389744cb3c6d1eb93dfb1ba
1 file changed +1 -2
commands/cli/parse.go
+1 -2
@@ -6,7 +6,6 @@ import (
6 "os"
7 "path"
8 "path/filepath"
9 - "runtime"
9 "sort"
10 "strings"
11
@@ -260,7 +259,7 @@ const msgStdinInfo = "ipfs: Reading from %s; send Ctrl-d to stop."
259
260 func parseArgs(inputs []string, stdin *os.File, argDefs []cmds.Argument, recursive, hidden bool, root *cmds.Command) ([]string, []files.File, error) {
261 // ignore stdin on Windows
263 - if runtime.GOOS == "windows" {
262 + if osh.IsWindows() {
263 stdin = nil
264 }
265