Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Qr code not nullable (DEV) (#3516)
Browse files Browse the repository at this point in the history
* not nullable

* merge conflict
  • Loading branch information
chiljamgossow committed Jun 23, 2021
1 parent 321691e commit cc3b5fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -94,7 +94,7 @@ data class RecoveryCertificateContainer(
get() = header.expiresAt

override val qrCode: QrCodeString
get() = data.recoveryCertificateQrCode!!
get() = data.recoveryCertificateQrCode
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc3b5fb

Please sign in to comment.