remove duplicate declaration of error

This commit is contained in:
Dai Jie 2020-10-02 16:59:44 +08:00 committed by GitHub
parent 15bf061b69
commit 538d1f9cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -245,7 +245,6 @@ func DialHTTP(network, address string) (*Client, error) {
// DialHTTPPath connects to an HTTP RPC server
// at the specified network address and path.
func DialHTTPPath(network, address, path string) (*Client, error) {
var err error
conn, err := net.Dial(network, address)
if err != nil {
return nil, err