Skip to content

Commit f2b1cea

Browse files
committed
Simplified makeCall() method.
1 parent 207a872 commit f2b1cea

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/com/sendgrid/SendGrid.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,7 @@ public void setHost(String host) {
9191
* Class makeCall makes the call to the SendGrid API, override this method for testing.
9292
*/
9393
public Response makeCall(Request request) throws IOException {
94-
Response response = new Response();
95-
try {
96-
response = client.api(request);
97-
} catch (IOException ex) {
98-
throw ex;
99-
}
100-
return response;
94+
return client.api(request);
10195
}
10296

10397
/**

0 commit comments

Comments
 (0)