Skip to content

Commit ffbc4fb

Browse files
committed
remove extra error check
1 parent 71d7cf7 commit ffbc4fb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/commands/dht.go

-3
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ var findProvidersDhtCmd = &cmds.Command{
146146
}
147147

148148
numProviders, _ := req.Options[numProvidersOptionName].(int)
149-
if err != nil {
150-
return err
151-
}
152149
if numProviders < 1 {
153150
return fmt.Errorf("number of providers must be greater than 0")
154151
}

0 commit comments

Comments
 (0)