From 6c6247a690edbc9856b823fe9adfad6b43ce8e71 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Mon, 12 Feb 2018 14:12:55 +0100 Subject: [PATCH] node, rpc: fix linter issues --- node/node.go | 2 +- rpc/http.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/node/node.go b/node/node.go index 37bd2eb3ce..a1dd5166da 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 277f093a23..a46d8c2b39 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 {