Commit ffbc4fb3 authored by ZenGround0's avatar ZenGround0

remove extra error check

parent 71d7cf7b
......@@ -146,9 +146,6 @@ var findProvidersDhtCmd = &cmds.Command{
}
numProviders, _ := req.Options[numProvidersOptionName].(int)
if err != nil {
return err
}
if numProviders < 1 {
return fmt.Errorf("number of providers must be greater than 0")
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment