From 003d4c6af2f5725c52551b69ee966047a08606e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Kr=C3=BCger?= Date: Wed, 23 Feb 2022 17:52:30 +0100 Subject: [PATCH] Remove unneeded not-null assertion operator (!!) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim Krüger --- .../com/nextcloud/talk/ui/bottom/sheet/ProfileBottomSheet.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/ui/bottom/sheet/ProfileBottomSheet.kt b/app/src/main/java/com/nextcloud/talk/ui/bottom/sheet/ProfileBottomSheet.kt index e301b3907..7a51cae3c 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/bottom/sheet/ProfileBottomSheet.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/bottom/sheet/ProfileBottomSheet.kt @@ -135,7 +135,7 @@ class ProfileBottomSheet(val ncApi: NcApi, val userEntity: UserEntity, val route null ) val credentials = ApiUtils.getCredentials(userEntity.username, userEntity.token) - ncApi!!.createRoom( + ncApi.createRoom( credentials, retrofitBucket.getUrl(), retrofitBucket.getQueryMap() ) @@ -153,7 +153,7 @@ class ProfileBottomSheet(val ncApi: NcApi, val userEntity: UserEntity, val route bundle.putString(BundleKeys.KEY_ROOM_ID, roomOverall.getOcs().getData().getRoomId()) // FIXME once APIv2+ is used only, the createRoom already returns all the data - ncApi!!.getRoom( + ncApi.getRoom( credentials, ApiUtils.getUrlForRoom( apiVersion, userEntity.baseUrl,