Remove unnecessary semicolons

This commit is contained in:
Laplie Anderson 2019-07-12 16:36:02 -04:00
parent 8a7336a017
commit 0eab4688cd
2 changed files with 5 additions and 5 deletions

View File

@ -10,11 +10,11 @@ import spock.lang.Shared
abstract class AbstractGoogleHttpClientTest extends HttpClientTest<GoogleHttpClientDecorator> { abstract class AbstractGoogleHttpClientTest extends HttpClientTest<GoogleHttpClientDecorator> {
@Shared @Shared
def requestFactory = new NetHttpTransport().createRequestFactory(); def requestFactory = new NetHttpTransport().createRequestFactory()
@Override @Override
int doRequest(String method, URI uri, Map<String, String> headers, Closure callback) { int doRequest(String method, URI uri, Map<String, String> headers, Closure callback) {
doRequest(method, uri, headers, callback, false); doRequest(method, uri, headers, callback, false)
} }
int doRequest(String method, URI uri, Map<String, String> headers, Closure callback, boolean throwExceptionOnError) { int doRequest(String method, URI uri, Map<String, String> headers, Closure callback, boolean throwExceptionOnError) {
@ -24,13 +24,13 @@ abstract class AbstractGoogleHttpClientTest extends HttpClientTest<GoogleHttpCli
request.getHeaders().putAll(headers) request.getHeaders().putAll(headers)
request.setThrowExceptionOnExecuteError(throwExceptionOnError) request.setThrowExceptionOnExecuteError(throwExceptionOnError)
HttpResponse response = executeRequest(request); HttpResponse response = executeRequest(request)
callback?.call() callback?.call()
return response.getStatusCode() return response.getStatusCode()
} }
abstract HttpResponse executeRequest(HttpRequest request); abstract HttpResponse executeRequest(HttpRequest request)
@Override @Override
GoogleHttpClientDecorator decorator() { GoogleHttpClientDecorator decorator() {

View File

@ -4,6 +4,6 @@ import com.google.api.client.http.HttpResponse
class GoogleHttpClientTest extends AbstractGoogleHttpClientTest { class GoogleHttpClientTest extends AbstractGoogleHttpClientTest {
@Override @Override
HttpResponse executeRequest(HttpRequest request) { HttpResponse executeRequest(HttpRequest request) {
return request.execute(); return request.execute()
} }
} }