Fix indentation

This commit is contained in:
Mikel 2017-07-26 17:36:05 +01:00
parent 09d94f3e06
commit 3b17d96bae

View file

@ -16,15 +16,15 @@ class RxJava2Tasks {
static Single<Integer> getUploadCount(String userName) { static Single<Integer> getUploadCount(String userName) {
return Single.fromCallable(() -> { return Single.fromCallable(() -> {
URL url = new URL(String.format(Locale.ENGLISH, UPLOAD_COUNT_URL_TEMPLATE, URL url = new URL(String.format(Locale.ENGLISH, UPLOAD_COUNT_URL_TEMPLATE,
new PageTitle(userName).getText())); new PageTitle(userName).getText()));
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
BufferedReader bufferedReader = new BufferedReader(new BufferedReader bufferedReader = new BufferedReader(new
InputStreamReader(urlConnection.getInputStream())); InputStreamReader(urlConnection.getInputStream()));
String uploadCount = bufferedReader.readLine(); String uploadCount = bufferedReader.readLine();
bufferedReader.close(); bufferedReader.close();
urlConnection.disconnect(); urlConnection.disconnect();
return Integer.parseInt(uploadCount); return Integer.parseInt(uploadCount);
}); });
} }
} }