diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-06-27 16:07:27 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-06-27 16:07:27 +0300 |
commit | d0d74eff0f2c546876fbc5cd632577c9039a86c4 (patch) | |
tree | e166f9f81bbcd512a1446be59aff7a5990fa488f /app/src/main/java/it/niedermann/nextcloud/deck/api | |
parent | 8b7bf982473e1f492d2ea2648edd19a299eec806 (diff) |
Use method reference instead of full lambda expression
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/api')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/api/RequestHelper.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/api/RequestHelper.java b/app/src/main/java/it/niedermann/nextcloud/deck/api/RequestHelper.java index 44ba28802..6bdfbbee1 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/api/RequestHelper.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/api/RequestHelper.java @@ -11,9 +11,7 @@ import it.niedermann.nextcloud.deck.DeckLog; public class RequestHelper { static { - RxJavaPlugins.setErrorHandler(e -> { - DeckLog.logError(e); - }); + RxJavaPlugins.setErrorHandler(DeckLog::logError); } public static <T> void request(final ApiProvider provider, final ObservableProvider<T> call, final IResponseCallback<T> callback) { |