Skip to content

Commit 6c6247a

Browse files
committed
node, rpc: fix linter issues
1 parent 589b603 commit 6c6247a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

node/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func (n *Node) startIPC(apis []rpc.API) error {
324324
return err
325325
}
326326
go func() {
327-
n.log.Info("IPC endpoint opened", "url", fmt.Sprintf("%s", n.ipcEndpoint))
327+
n.log.Info("IPC endpoint opened", "url", n.ipcEndpoint)
328328

329329
for {
330330
conn, err := listener.Accept()

rpc/http.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
245245
return
246246
}
247247
http.Error(w, "invalid host specified", http.StatusForbidden)
248-
return
249248
}
250249

251250
func newVHostHandler(vhosts []string, next http.Handler) http.Handler {

0 commit comments

Comments
 (0)