Skip to content

Commit

Permalink
ktlinting
Browse files Browse the repository at this point in the history
  • Loading branch information
s148719 committed Dec 2, 2024
1 parent 91140aa commit 47028e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package no.nav.bidrag.behandling.service

import no.nav.bidrag.behandling.consumer.BidragPersonConsumer
import no.nav.bidrag.behandling.database.datamodell.Barnetilsyn
import no.nav.bidrag.behandling.database.datamodell.Behandling
import no.nav.bidrag.behandling.database.datamodell.FaktiskTilsynsutgift
Expand All @@ -27,9 +26,7 @@ import no.nav.bidrag.behandling.transformers.underhold.validere
import no.nav.bidrag.behandling.transformers.underhold.validerePerioder
import no.nav.bidrag.domene.enums.barnetilsyn.Skolealder
import no.nav.bidrag.domene.enums.diverse.Kilde
import no.nav.bidrag.domene.ident.Personident
import org.springframework.http.HttpStatus
import org.springframework.http.HttpStatusCode
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import org.springframework.web.client.HttpClientErrorException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ fun OppdatereUnderholdRequest.validere() {
}
}

fun BarnDto.validere(behandling: Behandling, personService: PersonService) {
fun BarnDto.validere(
behandling: Behandling,
personService: PersonService,
) {
if ((navn.isNullOrBlank() || fødselsdato == null) && (personident == null || personident.verdi.isEmpty())) {
throw HttpClientErrorException(
HttpStatus.BAD_REQUEST,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import no.nav.bidrag.commons.web.mock.stubSjablonService
import no.nav.bidrag.transport.behandling.vedtak.response.OpprettVedtakResponseDto
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.extension.ExtendWith
import org.springframework.boot.test.mock.mockito.MockBean
import org.springframework.test.context.junit.jupiter.SpringExtension
import stubPersonConsumer
import stubPersonRepository
Expand Down

0 comments on commit 47028e7

Please sign in to comment.