diff --git a/node/node.go b/node/node.go
index 37bd2eb3ce0a12d4e0688c65bffc865720376a41..a1dd5166da6fca2e3315f7fbc93cf15123760a42 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 277f093a230b6981ff6066216b79b5d8c0909cc0..a46d8c2b399fa5ad608f7cc09c0c24ef567664d6 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 {