Skip to content
Snippets Groups Projects
Unverified Commit cc3b5fbc authored by Chilja Gossow's avatar Chilja Gossow Committed by GitHub
Browse files

Qr code not nullable (DEV) (#3516)

* not nullable

* merge conflict
parent 321691ec
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ data class RecoveryCertificateContainer(
@delegate:Transient
private val certificateData: DccData<RecoveryDccV1> by lazy {
data.recoveryCertificateQrCode!!.let {
data.recoveryCertificateQrCode.let {
(
qrCodeExtractor.extract(
it,
......@@ -94,7 +94,7 @@ data class RecoveryCertificateContainer(
get() = header.expiresAt
override val qrCode: QrCodeString
get() = data.recoveryCertificateQrCode!!
get() = data.recoveryCertificateQrCode
}
}
}
......@@ -3,9 +3,9 @@ package de.rki.coronawarnapp.covidcertificate.recovery.core.storage
import com.google.gson.annotations.SerializedName
data class StoredRecoveryCertificateData(
@SerializedName("recoveryCertificateQrCode") override val recoveryCertificateQrCode: String?,
@SerializedName("recoveryCertificateQrCode") override val recoveryCertificateQrCode: String,
) : StoredRecoveryCertificate
interface StoredRecoveryCertificate {
val recoveryCertificateQrCode: String?
val recoveryCertificateQrCode: String
}
......@@ -3,7 +3,7 @@ package de.rki.coronawarnapp.covidcertificate.test.core.storage.types
import org.joda.time.Instant
/**
* Common data for test certificates, idepdent of whether they were retrieved or scanned.
* Common data for test certificates, independent of whether they were retrieved or scanned.
*/
sealed class BaseTestCertificateData {
abstract val identifier: String
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment