mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 15:58:13 +08:00
Deletes the general 'too few arguments' check.
License: MIT Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
This commit is contained in:
parent
068b7f7f21
commit
54bea781d9
@ -64,11 +64,6 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) {
|
||||
|
||||
args := make([]string, valCount)
|
||||
|
||||
//skip further checks if we have fewer provided arguments than minimum required
|
||||
if valCount < numRequired {
|
||||
return nil, fmt.Errorf("Needed at least %v argument(s), got %v", numRequired, valCount)
|
||||
}
|
||||
|
||||
valIndex := 0
|
||||
requiredFile := ""
|
||||
for _, argDef := range cmd.Arguments {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user