mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix indentation
This commit is contained in:
parent
09d94f3e06
commit
3b17d96bae
1 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue