node, rpc: fix linter issues

parent 589b603a
...@@ -324,7 +324,7 @@ func (n *Node) startIPC(apis []rpc.API) error { ...@@ -324,7 +324,7 @@ func (n *Node) startIPC(apis []rpc.API) error {
return err return err
} }
go func() { go func() {
n.log.Info("IPC endpoint opened", "url", fmt.Sprintf("%s", n.ipcEndpoint)) n.log.Info("IPC endpoint opened", "url", n.ipcEndpoint)
for { for {
conn, err := listener.Accept() conn, err := listener.Accept()
......
...@@ -245,7 +245,6 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { ...@@ -245,7 +245,6 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return return
} }
http.Error(w, "invalid host specified", http.StatusForbidden) http.Error(w, "invalid host specified", http.StatusForbidden)
return
} }
func newVHostHandler(vhosts []string, next http.Handler) http.Handler { func newVHostHandler(vhosts []string, next http.Handler) http.Handler {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment