Skip to content

Commit ed4245d

Browse files
Merge pull request #175 from rafalwrzeszcz/feature/simplify
Simplified `makeCall()` method.
2 parents 3cabc41 + f2b1cea commit ed4245d

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)