(result = {})
| 217 | } |
| 218 | |
| 219 | function normalizeLuckmailTokenCode(result = {}) { |
| 220 | return { |
| 221 | email_address: firstNonEmptyString([result.email_address, result.address]), |
| 222 | project: firstNonEmptyString([result.project]), |
| 223 | has_new_mail: Boolean(result.has_new_mail), |
| 224 | verification_code: firstNonEmptyString([result.verification_code]) || null, |
| 225 | mail: result.mail ? normalizeLuckmailTokenMail(result.mail) : null, |
| 226 | }; |
| 227 | } |
| 228 | |
| 229 | function normalizeLuckmailMailCursor(cursor = {}) { |
| 230 | const safeCursor = cursor && typeof cursor === 'object' ? cursor : {}; |
no test coverage detected