remove extra error check

This commit is contained in:
ZenGround0 2019-03-03 15:21:34 -05:00
parent 71d7cf7b0d
commit ffbc4fb34e

View File

@ -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")
}