Merge pull request #16071 from holiman/lintfix

node, rpc: fix linter issues
This commit is contained in:
Péter Szilágyi 2018-02-12 15:16:47 +02:00 committed by GitHub
commit 70fbc87379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -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()

View File

@ -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 {