Skip to content

Commit

Permalink
r - Fjerner useless cast
Browse files Browse the repository at this point in the history
  • Loading branch information
MariamPervez committed Sep 26, 2024
1 parent b846af5 commit 82d4f64
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class VurderBrukerInfo (
sedHendelse: SedHendelse,
sedHendelseType: HendelseType
) {
val lagretJournalpost = JournalpostMedSedInfo(journalpostRequest as OpprettJournalpostRequest, sedHendelse, sedHendelseType)
val lagretJournalpost = JournalpostMedSedInfo(journalpostRequest, sedHendelse, sedHendelseType)
logger.debug("""Journalposten mangler bruker og vil bli lagret for fremtidig vurdering
| ${lagretJournalpost.toJson()}
""".trimMargin())
Expand Down Expand Up @@ -60,7 +60,7 @@ class VurderBrukerInfo (
val lagretJournalPost = mapJsonToAny<JournalpostMedSedInfo>(journalpost)

val jprUtenBrukerOppdatert = lagretJournalPost.copy(
journalpostRequest = updateRequest(lagretJournalPost.journalpostRequest, jprMedBruker as OpprettJournalpostRequest)
journalpostRequest = updateRequest(lagretJournalPost.journalpostRequest, jprMedBruker)
)

logger.info("Henter lagret sed: ${jprUtenBrukerOppdatert.journalpostRequest.tittel} fra gcp, rinaid: $rinaId")
Expand Down

0 comments on commit 82d4f64

Please sign in to comment.