Remove unneeded not-null assertion operator (!!)

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-02-23 17:52:30 +01:00 committed by Andy Scherzinger
parent 94f2339baa
commit 003d4c6af2
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -135,7 +135,7 @@ class ProfileBottomSheet(val ncApi: NcApi, val userEntity: UserEntity, val route
null null
) )
val credentials = ApiUtils.getCredentials(userEntity.username, userEntity.token) val credentials = ApiUtils.getCredentials(userEntity.username, userEntity.token)
ncApi!!.createRoom( ncApi.createRoom(
credentials, credentials,
retrofitBucket.getUrl(), retrofitBucket.getQueryMap() 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()) bundle.putString(BundleKeys.KEY_ROOM_ID, roomOverall.getOcs().getData().getRoomId())
// FIXME once APIv2+ is used only, the createRoom already returns all the data // FIXME once APIv2+ is used only, the createRoom already returns all the data
ncApi!!.getRoom( ncApi.getRoom(
credentials, credentials,
ApiUtils.getUrlForRoom( ApiUtils.getUrlForRoom(
apiVersion, userEntity.baseUrl, apiVersion, userEntity.baseUrl,