@cryptotaxi247 / kubo / commits / 41b89d2fb

fix closenotify by not sending empty file set

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Dec 2, 2015 at 20:54 UTC 41b89d2fb9e9ac11c1ef980d271569c9a035be27
1 file changed +4 -2
commands/cli/parse.go
+4 -2
@@ -49,8 +49,10 @@ func Parse(input []string, stdin *os.File, root *cmds.Command) (cmds.Request, *c
49 }
50 req.SetArguments(stringArgs)
51
52 - file := files.NewSliceFile("", "", fileArgs)
53 - req.SetFiles(file)
52 + if len(fileArgs) > 0 {
53 + file := files.NewSliceFile("", "", fileArgs)
54 + req.SetFiles(file)
55 + }
56
57 err = cmd.CheckArguments(req)
58 if err != nil {