Skip to content

Commit

Permalink
Remove useless let
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasBourdin88 committed Jul 10, 2024
1 parent a9cf5e9 commit cdaf02d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/infomaniak/mail/ui/MainViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
package com.infomaniak.mail.ui

import android.app.Activity
import android.app.Application
import android.content.Context
import androidx.lifecycle.*
Expand Down Expand Up @@ -1071,7 +1070,7 @@ class MainViewModel @Inject constructor(
val response = ApiRepository.getShareLink(mailboxUuid, message.folderId, message.shortUid)

if (response.isSuccess() && response.data != null) {
response.data!!.url.let { activityContext.shareString(it) }
activityContext.shareString(response.data!!.url)
}
}
}
Expand Down

0 comments on commit cdaf02d

Please sign in to comment.