Skip to content

Commit 2534475

Browse files
Remove relatively useless draftMode val
1 parent fa596d6 commit 2534475

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/main/java/com/infomaniak/mail/utils/SentryDebug.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,15 @@ object SentryDebug {
115115
fun format(index: Int): String = (index + 1).countPad()
116116

117117
data[count() + "email".keyPad()] = AccountUtils.currentMailboxEmail.toString()
118+
118119
data[count() + "draft".keyPad() + " - localUuid"] = localUuid
119120
data[count() + "draft".keyPad() + " - remoteUuid"] = remoteUuid.toString()
120121
data[count() + "draft".keyPad() + " - action"] = action?.name.toString()
121-
122-
val draftMode = when {
122+
data[count() + "draft".keyPad() + " - mode"] = when {
123123
inReplyToUid != null -> "REPLY or REPLY_ALL"
124124
forwardedUid != null -> "FORWARD"
125125
else -> "NEW_MAIL"
126126
}
127-
data[count() + "draft".keyPad() + " - mode"] = draftMode
128127

129128
data[count() + "attachments".keyPad() + " - count"] = attachments.count()
130129

0 commit comments

Comments
 (0)