@cryptotaxi247 / kubo / commits / 54bea781d

Deletes the general 'too few arguments' check.

Deletes the general 'too few arguments' check. License: MIT Signed-off-by: Mateja Milosevic <minima38123@gmail.com>

Quantomic committed Jul 9, 2017 at 22:24 UTC 54bea781d96561319974c69f8cd35e52541e90ca
1 file changed -5
commands/http/parse.go
-5
@@ -64,11 +64,6 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) {
64
65 args := make([]string, valCount)
66
67 - //skip further checks if we have fewer provided arguments than minimum required
68 - if valCount < numRequired {
69 - return nil, fmt.Errorf("Needed at least %v argument(s), got %v", numRequired, valCount)
70 - }
71 -
67 valIndex := 0
68 requiredFile := ""
69 for _, argDef := range cmd.Arguments {