Simplify if/else

This commit is contained in:
inorichi
2015-10-13 00:15:03 +02:00
parent 0febdfb715
commit 82ac2b3223
2 changed files with 8 additions and 15 deletions

View File

@@ -40,6 +40,7 @@ public abstract class Source {
.flatMap(response -> Observable.just(parsePopularMangasFromHtml(response)));
}
// Get mangas from the source with a query
public Observable<List<Manga>> searchMangasFromNetwork(String query, int page) {
return mNetworkService
.getStringResponse(getSearchUrl(query, page), mNetworkService.NULL_CACHE_CONTROL, mRequestHeaders)