Replace lambda with a method reference

This commit is contained in:
Kaartic Sivaraam 2024-06-09 11:22:12 +05:30
parent 88a0f0c58d
commit 27d9fd8758

View file

@ -160,7 +160,7 @@ public class MoreBottomSheetFragment extends BottomSheetDialogFragment {
feedbackContentCreator.getSectionText(),
"Summary"
)
.flatMapSingle(result -> Single.just(result))
.flatMapSingle(Single::just)
.firstOrError();
Single.defer((Callable<SingleSource<Boolean>>) () -> single)