Skip to content

Commit

Permalink
refactor: Remove now useless Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Feb 10, 2025
1 parent 35054fb commit cb8da6f
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,7 @@ object AttachmentExtensions {
}
}

fun List<Attachment>.findSpecificAttachment(attachment: Attachment) = this
.filter { it.localUuid == attachment.localUuid }
.also {
// TODO: If this Sentry never triggers, remove it and replace the
// `filter { … }.also { … }.firstOrNull()` with `singleOrNull { … }`
if (it.count() > 1) Sentry.captureMessage("Found several Attachments with the same localUuid")
}
.firstOrNull()
fun List<Attachment>.findSpecificAttachment(attachment: Attachment) = singleOrNull { it.localUuid == attachment.localUuid }

enum class AttachmentIntentType {
OPEN_WITH,
Expand Down

0 comments on commit cb8da6f

Please sign in to comment.