mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 13:57:52 +08:00
remove extra error check
This commit is contained in:
parent
71d7cf7b0d
commit
ffbc4fb34e
@ -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")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user