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 <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Jul 19, 2024
1 parent 0137bde commit 977707d
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 977707d

Please sign in to comment.