Skip to content

Commit

Permalink
chore(evaluated-model): Remove a superfluous file format case
Browse files Browse the repository at this point in the history
As of 78fb986 `FileFormat` only has `JSON` and `YAML` entries, so the
`when` clause is exhausitve and the `else` branch can be removed.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Jul 18, 2024
1 parent 15131f2 commit 585b1fe
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class EvaluatedModelReporter : Reporter {
when (fileFormat) {
FileFormat.JSON -> evaluatedModel.toJson(it)
FileFormat.YAML -> evaluatedModel.toYaml(it)
else -> throw IllegalArgumentException("Unsupported Evaluated Model file format '$fileFormat'.")
}
}

Expand Down

0 comments on commit 585b1fe

Please sign in to comment.