Skip to content

Commit

Permalink
Exhaust switch utfall
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen committed Nov 1, 2024
1 parent 25f3f7d commit 643ba53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private KlageVurdering klageVurderingFraUtfall(KabalUtfall utfall) {
case AVVIST, INNSTILLING_AVVIST -> KlageVurdering.AVVIS_KLAGE;
case OPPHEVET -> KlageVurdering.OPPHEVE_YTELSESVEDTAK;
case MEDHOLD, DELVIS_MEDHOLD, UGUNST -> KlageVurdering.MEDHOLD_I_KLAGE;
case RETUR, TRUKKET, HEVET -> throw new IllegalStateException("Utviklerfeil forsøker lagre klage med utfall " + utfall);
case RETUR, TRUKKET, HEVET, MEDHOLD_ETTER_FVL_35 -> throw new IllegalStateException("Utviklerfeil forsøker lagre klage med utfall " + utfall);
};
}

Expand All @@ -282,7 +282,7 @@ private AnkeVurdering ankeVurderingFraUtfall(KabalUtfall utfall) {
case AVVIST, INNSTILLING_AVVIST -> AnkeVurdering.ANKE_AVVIS;
case OPPHEVET -> AnkeVurdering.ANKE_OPPHEVE_OG_HJEMSENDE;
case MEDHOLD, DELVIS_MEDHOLD, UGUNST -> AnkeVurdering.ANKE_OMGJOER;
case RETUR, TRUKKET, HEVET -> throw new IllegalStateException("Utviklerfeil forsøker lagre klage med utfall " + utfall);
case RETUR, TRUKKET, HEVET, MEDHOLD_ETTER_FVL_35 -> throw new IllegalStateException("Utviklerfeil forsøker lagre anke med utfall " + utfall);
};
}

Expand Down

0 comments on commit 643ba53

Please sign in to comment.