From d7c662933149bc389bd03b8f8d8ac35c3042552e Mon Sep 17 00:00:00 2001 From: Sneha Desai Date: Tue, 15 Oct 2024 13:20:08 +0200 Subject: [PATCH] Fikser codeql quality check feil --- .../java/no/nav/veilarbperson/service/PersonV2Service.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/no/nav/veilarbperson/service/PersonV2Service.java b/src/main/java/no/nav/veilarbperson/service/PersonV2Service.java index 39b719ab..acc2d22e 100644 --- a/src/main/java/no/nav/veilarbperson/service/PersonV2Service.java +++ b/src/main/java/no/nav/veilarbperson/service/PersonV2Service.java @@ -318,12 +318,9 @@ public TilrettelagtKommunikasjonData hentSpraakTolkInfo(PersonFraPdlRequest pers return new TilrettelagtKommunikasjonData().setTegnspraak(tegnSpraak).setTalespraak(taleSpraak); } - public VergeData hentVerge(PersonFraPdlRequest personFraPdlRequest) throws IOException { + public VergeData hentVerge(PersonFraPdlRequest personFraPdlRequest) { HentPerson.Verge vergeOgFullmaktFraPdl = pdlClient.hentVerge(new PdlRequest(personFraPdlRequest.getFnr(), personFraPdlRequest.getBehandlingsnummer())); - VergeData vergeData = toVerge(vergeOgFullmaktFraPdl); - - - return vergeData; + return toVerge(vergeOgFullmaktFraPdl); } public FullmaktDTO hentFullmakt(PersonRequest personRequest) throws IOException {