diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-02-12 21:16:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-12 21:16:47 +0800 |
commit | 70fbc873791c3acae544f3b6514afeb5012dbdbe (patch) | |
tree | e9c9fced3d8f09c9d9752be653c8843bf3fdcfbb | |
parent | 589b603a9b1e17930d1e83ca64ce7cdc4c3d5c85 (diff) | |
parent | 6c6247a690edbc9856b823fe9adfad6b43ce8e71 (diff) | |
download | dexon-70fbc873791c3acae544f3b6514afeb5012dbdbe.tar.gz dexon-70fbc873791c3acae544f3b6514afeb5012dbdbe.tar.zst dexon-70fbc873791c3acae544f3b6514afeb5012dbdbe.zip |
Merge pull request #16071 from holiman/lintfix
node, rpc: fix linter issues
-rw-r--r-- | node/node.go | 2 | ||||
-rw-r--r-- | rpc/http.go | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/node/node.go b/node/node.go index 37bd2eb3c..a1dd5166d 100644 --- a/node/node.go +++ b/node/node.go @@ -324,7 +324,7 @@ func (n *Node) startIPC(apis []rpc.API) error { return err } go func() { - n.log.Info("IPC endpoint opened", "url", fmt.Sprintf("%s", n.ipcEndpoint)) + n.log.Info("IPC endpoint opened", "url", n.ipcEndpoint) for { conn, err := listener.Accept() diff --git a/rpc/http.go b/rpc/http.go index 277f093a2..a46d8c2b3 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -245,7 +245,6 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } http.Error(w, "invalid host specified", http.StatusForbidden) - return } func newVHostHandler(vhosts []string, next http.Handler) http.Handler { |