Explorar o código

Merge pull request #122 from philips/fix-nip-in-transporter

chore(trasnsporter): delete unused variables
Brandon Philips %!s(int64=13) %!d(string=hai) anos
pai
achega
f1786b8083
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      transporter.go

+ 2 - 4
transporter.go

@@ -151,12 +151,10 @@ func (t transporter) SendSnapshotRecoveryRequest(server *raft.Server, peer *raft
 
 // Send server side POST request
 func (t transporter) Post(path string, body io.Reader) (*http.Response, error) {
-	resp, err := t.client.Post(path, "application/json", body)
-	return resp, err
+	return t.client.Post(path, "application/json", body)
 }
 
 // Send server side GET request
 func (t transporter) Get(path string) (*http.Response, error) {
-	resp, err := t.client.Get(path)
-	return resp, err
+	return t.client.Get(path)
 }