Remove default parameter values.
This improve code coverage since some default value was never used.
This commit is contained in:
parent
b9caede2d3
commit
008a554ca6
2 changed files with 4 additions and 3 deletions
|
|
@ -235,6 +235,7 @@ class AttachmentsPreviewPresenter @AssistedInject constructor(
|
|||
mediaSender.sendPreProcessedMedia(
|
||||
mediaUploadInfo = mediaUploadInfo,
|
||||
caption = caption,
|
||||
formattedCaption = null,
|
||||
progressCallback = progressCallback
|
||||
).getOrThrow()
|
||||
}.fold(
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@ class MediaSender @Inject constructor(
|
|||
|
||||
suspend fun sendPreProcessedMedia(
|
||||
mediaUploadInfo: MediaUploadInfo,
|
||||
caption: String? = null,
|
||||
formattedCaption: String? = null,
|
||||
progressCallback: ProgressCallback? = null
|
||||
caption: String?,
|
||||
formattedCaption: String?,
|
||||
progressCallback: ProgressCallback?,
|
||||
): Result<Unit> {
|
||||
return room.sendMedia(
|
||||
uploadInfo = mediaUploadInfo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue